From: Marcel Raad Date: Thu, 21 Sep 2017 18:07:24 +0000 (+0200) Subject: examples/post-callback: use long for CURLOPT_POSTFIELDSIZE X-Git-Tag: curl-7_56_0~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5d916944ae3043de7b8d644d9ca3420fb0b2417e;p=thirdparty%2Fcurl.git examples/post-callback: use long for CURLOPT_POSTFIELDSIZE Otherwise, typecheck-gcc.h warns on MinGW-w64. --- diff --git a/docs/examples/post-callback.c b/docs/examples/post-callback.c index 4dbe18e24f..ebb4e2a25c 100644 --- a/docs/examples/post-callback.c +++ b/docs/examples/post-callback.c @@ -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