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
This commit is contained in:
Daniel Stenberg 2022-09-12 00:02:07 +02:00
parent f06e5c3544
commit 9ac40bfcf0
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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 },