From: Daniel Stenberg Date: Tue, 13 Sep 2022 20:56:31 +0000 (+0200) Subject: setopt: fix compiler warning X-Git-Tag: curl-7_86_0~237 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ddda4fdf3d3e725f73d1cce3177fa0d0dde4b5c9;p=thirdparty%2Fcurl.git setopt: fix compiler warning Follow-up to cd5ca80f00d2 closes #9502 --- diff --git a/lib/setopt.c b/lib/setopt.c index 8639225ebb..03c4efdbf1 100644 --- a/lib/setopt.c +++ b/lib/setopt.c @@ -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; }