From 9ac40bfcf03569943baf57b6fa31b8143943b05f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 12 Sep 2022 00:02:07 +0200 Subject: 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 --- lib/setopt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/setopt.c') diff --git a/lib/setopt.c b/lib/setopt.c index bfc717643..a84ae4fa4 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 }, -- cgit v1.2.1