diff options
author | Marcel Raad <Marcel.Raad@teamviewer.com> | 2017-09-21 20:07:24 +0200 |
---|---|---|
committer | Marcel Raad <Marcel.Raad@teamviewer.com> | 2017-09-21 20:07:24 +0200 |
commit | 5d916944ae3043de7b8d644d9ca3420fb0b2417e (patch) | |
tree | a164b2f2ff1f2cc3ad16718ffdd8e6a5cc9cfa96 /docs/examples | |
parent | a7bcf274ccf3dd6eca86c5fbdf2d568690e0c494 (diff) |
examples/post-callback: use long for CURLOPT_POSTFIELDSIZE
Otherwise, typecheck-gcc.h warns on MinGW-w64.
Diffstat (limited to 'docs/examples')
-rw-r--r-- | docs/examples/post-callback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/post-callback.c b/docs/examples/post-callback.c index 4dbe18e24..ebb4e2a25 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 |