]> granicus.if.org Git - curl/commitdiff
test1531: case the size to fix the test on non-largefile builds
authorDan Fandrich <dan@coneharvesters.com>
Wed, 14 Oct 2015 20:00:09 +0000 (22:00 +0200)
committerDan Fandrich <dan@coneharvesters.com>
Wed, 14 Oct 2015 20:00:09 +0000 (22:00 +0200)
tests/libtest/lib1531.c

index 5df34814b6b8b7fcc2419d40f98b37051851aeae..a0612a9d90991a549dff4774cc8202d17f712856 100644 (file)
@@ -49,7 +49,7 @@ int test(char *URL)
 
   /* set the options (I left out a few, you'll get the point anyway) */
   curl_easy_setopt(easy, CURLOPT_URL, URL);
-  curl_easy_setopt(easy, CURLOPT_POSTFIELDSIZE_LARGE, testDataSize);
+  curl_easy_setopt(easy, CURLOPT_POSTFIELDSIZE_LARGE, (curl_off_t)testDataSize);
   curl_easy_setopt(easy, CURLOPT_POSTFIELDS, testData);
 
   /* we start some action by calling perform right away */