From: Daniel Stenberg Date: Sun, 11 Sep 2022 22:02:07 +0000 (+0200) Subject: setopt: make protocol2num use a curl_off_t for the protocol bit X-Git-Tag: curl-7_86_0~257 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9ac40bfcf03569943baf57b6fa31b8143943b05f;p=thirdparty%2Fcurl.git setopt: make protocol2num use a curl_off_t for the protocol bit ... since WSS does not fit within 32 bit. Bug: https://github.com/curl/curl/pull/9467#issuecomment-1243014887 Closes #9476 --- diff --git a/lib/setopt.c b/lib/setopt.c index bfc7176437..a84ae4fa47 100644 --- a/lib/setopt.c +++ b/lib/setopt.c @@ -153,7 +153,7 @@ static CURLcode protocol2num(char *str, curl_off_t *val) bool found_comma = FALSE; static struct scheme { const char *name; - long bit; + curl_off_t bit; } const protos[] = { { "dict", CURLPROTO_DICT }, { "file", CURLPROTO_FILE },