diff options
author | Daniel Stenberg <daniel@haxx.se> | 2022-12-13 15:02:00 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-12-14 12:31:01 +0100 |
commit | 57d2d9b6bed33dd92a6481b4aee363b42c3bf76b (patch) | |
tree | 2381380dcd8ce22576e04afd329b1dfcbd72ab09 /lib/setopt.c | |
parent | 58f55ba57e630571a5c9d110ce5f94f526fe094f (diff) | |
download | curl-57d2d9b6bed33dd92a6481b4aee363b42c3bf76b.tar.gz |
lib: use size_t or int etc instead of longs
Since long is not using a consistent data size in curl builds, making it
often "waste" 32 bits.
Closes #10088
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 a12526176..b77e95b4e 100644 --- a/lib/setopt.c +++ b/lib/setopt.c @@ -1166,7 +1166,7 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param) break; case CURLOPT_SOCKS5_AUTH: - data->set.socks5auth = va_arg(param, unsigned long); + data->set.socks5auth = (unsigned char)va_arg(param, unsigned long); if(data->set.socks5auth & ~(CURLAUTH_BASIC | CURLAUTH_GSSAPI)) result = CURLE_NOT_BUILT_IN; break; |