diff options
Diffstat (limited to 'lib/setopt.c')
-rw-r--r-- | lib/setopt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/setopt.c b/lib/setopt.c index 8639225eb..03c4efdbf 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; } |