cURL / Mailing Lists / curl-library / Single Mail

curl-library

Test 505 in Windows

From: Andres Garcia <fandom_at_retemail.es>
Date: Thu, 08 Jul 2004 12:59:06 +0200

Hi,

After way too many time trying to learn why this test fails in
Windows, it so happens I just needed to add the following
cast:

    curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE,
                     (curl_off_t)file_info.st_size);

Please, excuse while I fnd a good wall to bang my head in.

Andres

--- curl/tests/libtest/lib505.c Thu Jul 8 10:57:08 2004
+++ Prueba/tests/libtest/lib505.c Thu Jul 8 10:56:53 2004
@@ -97,7 +97,7 @@
 
     /* and give the size of the upload (optional) */
     curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE,
- file_info.st_size);
+ (curl_off_t)file_info.st_size);
 
     /* Now run off and do what you've been told! */
     res = curl_easy_perform(curl);
Received on 2004-07-08