summaryrefslogtreecommitdiff
path: root/lib/setopt.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-09-13 22:56:31 +0200
committerDaniel Stenberg <daniel@haxx.se>2022-09-14 08:02:27 +0200
commitddda4fdf3d3e725f73d1cce3177fa0d0dde4b5c9 (patch)
tree399f387d5e320b5a71d1aafc55f26b699b50f66d /lib/setopt.c
parent2ca0530a4d4bd1e1ccb9c876e954d8dc9a87da4a (diff)
downloadcurl-ddda4fdf3d3e725f73d1cce3177fa0d0dde4b5c9.tar.gz
setopt: fix compiler warning
Follow-up to cd5ca80f00d2 closes #9502
Diffstat (limited to 'lib/setopt.c')
-rw-r--r--lib/setopt.c2
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;
}