mirror of
https://github.com/curl/curl.git
synced 2025-09-28 23:16:48 +03:00
Force setopt constants written by --libcurl to be long
This commit is contained in:
parent
d6b9f76943
commit
a9aeedcdbe
|
@ -4186,7 +4186,7 @@ static CURLcode _my_setopt(CURL *curl, bool str, struct Configurable *config,
|
||||||
|
|
||||||
if(tag < CURLOPTTYPE_OBJECTPOINT) {
|
if(tag < CURLOPTTYPE_OBJECTPOINT) {
|
||||||
long lval = va_arg(arg, long);
|
long lval = va_arg(arg, long);
|
||||||
snprintf(value, sizeof(value), "%ld", lval);
|
snprintf(value, sizeof(value), "%ldL", lval);
|
||||||
ret = curl_easy_setopt(curl, tag, lval);
|
ret = curl_easy_setopt(curl, tag, lval);
|
||||||
if(!lval)
|
if(!lval)
|
||||||
skip = TRUE;
|
skip = TRUE;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user