setopt: fix compiler warning

Follow-up to cd5ca80f00

closes #9502
This commit is contained in:
Daniel Stenberg 2022-09-13 22:56:31 +02:00
parent 2ca0530a4d
commit ddda4fdf3d
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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;
}