examples/post-callback: use long for CURLOPT_POSTFIELDSIZE

Otherwise, typecheck-gcc.h warns on MinGW-w64.
This commit is contained in:
Marcel Raad 2017-09-21 20:07:24 +02:00
parent a7bcf274cc
commit 5d916944ae
No known key found for this signature in database
GPG Key ID: 07ADACB610D796DA
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ int main(void)
#else
/* Set the expected POST size. If you want to POST large amounts of data,
consider CURLOPT_POSTFIELDSIZE_LARGE */
curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, wt.sizeleft);
curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)wt.sizeleft);
#endif
#ifdef DISABLE_EXPECT