summaryrefslogtreecommitdiff
path: root/lib/setopt.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-01-26 14:59:01 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-01-27 09:19:12 +0100
commite76b058f3c9a314edbc1a214e1eaf6ef21955bd9 (patch)
treef272b62819f51cff2ddd59a63447ef3805423e5f /lib/setopt.c
parent1c3def53c71f85bb3ae16cd4c39dbdcc2a6c460f (diff)
downloadcurl-e76b058f3c9a314edbc1a214e1eaf6ef21955bd9.tar.gz
urldata: store ip version in a single byte
Closes #6534
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 409234fcd..37e122f9c 100644
--- a/lib/setopt.c
+++ b/lib/setopt.c
@@ -2271,7 +2271,7 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
arg = va_arg(param, long);
if((arg < CURL_IPRESOLVE_WHATEVER) || (arg > CURL_IPRESOLVE_V6))
return CURLE_BAD_FUNCTION_ARGUMENT;
- data->set.ipver = arg;
+ data->set.ipver = (unsigned char) arg;
break;
case CURLOPT_MAXFILESIZE_LARGE: