mirror of
https://github.com/curl/curl.git
synced 2026-06-05 09:04:15 +03:00
--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.
This commit is contained in:
parent
9be951a415
commit
12533bb184
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue