aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-07-06 19:19:52 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-07-06 19:19:52 +0200
commit12533bb1841c17c5ae90a70bdaf6d13be4a76493 (patch)
treebde4b01ff25f95c7c580eb392d81912cc33f2238 /src
parent9be951a41503cd212d035496a003924f00b7aa06 (diff)
--libcurl: use *_LARGE options with typecasted constants
In the generated code --libcurl makes, all calls to curl_easy_setopt() that use *_LARGE options now have the value typecasted to curl_off_t, so that it works correctly for 32bit systems with 64bit curl_off_t type.
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 5827b5ed4..0618b6fbd 100644
--- a/src/main.c
+++ b/src/main.c
@@ -4118,7 +4118,7 @@ static CURLcode _my_setopt(CURL *curl, bool str, struct Configurable *config,
}
else {
curl_off_t oval = va_arg(arg, curl_off_t);
- snprintf(value, sizeof(value), "%" CURL_FORMAT_CURL_OFF_T, oval);
+ snprintf(value, sizeof(value), "(curl_off_t)%" CURL_FORMAT_CURL_OFF_T, oval);
ret = curl_easy_setopt(curl, tag, oval);
}