]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
setopt: fix compiler warning
authorDaniel Stenberg <daniel@haxx.se>
Tue, 13 Sep 2022 20:56:31 +0000 (22:56 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 14 Sep 2022 06:02:27 +0000 (08:02 +0200)
Follow-up to cd5ca80f00d2

closes #9502

lib/setopt.c

index 8639225ebb987a6f81c61aa7e47506a8ac49af2a..03c4efdbf1e587eaf840468ab533f1d5e28241be 100644 (file)
@@ -195,7 +195,7 @@ static CURLcode protocol2num(char *str, curl_prot_t *val)
   if(!str)
     return CURLE_BAD_FUNCTION_ARGUMENT;
   else if(curl_strequal(str, "all")) {
-    *val = ~0;
+    *val = (curl_prot_t)~0;
     return CURLE_OK;
   }