summaryrefslogtreecommitdiff
path: root/lib/setopt.c
diff options
context:
space:
mode:
authorRose <83477269+AtariDreams@users.noreply.github.com>2022-10-28 12:32:09 -0400
committerJay Satiro <raysatiro@yahoo.com>2022-11-08 03:11:01 -0500
commitf151ec6c1053826bdcc740d97257d877b759e777 (patch)
tree6da9daa805268783d6b3fb75dde3cb5007ab4fb9 /lib/setopt.c
parent14061f784c47069d20d17dd9d6c6cf4613efeca5 (diff)
downloadcurl-f151ec6c1053826bdcc740d97257d877b759e777.tar.gz
lib: fix some type mismatches and remove unneeded typecasts
Many of these castings are unneeded if we change the variables to work better with each other. Ref: https://github.com/curl/curl/pull/9823 Closes https://github.com/curl/curl/pull/9835
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 0ff9f9043..d32fdac0d 100644
--- a/lib/setopt.c
+++ b/lib/setopt.c
@@ -2205,7 +2205,7 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
else if(arg < READBUFFER_MIN)
arg = READBUFFER_MIN;
- data->set.buffer_size = (int)arg;
+ data->set.buffer_size = (unsigned int)arg;
break;
case CURLOPT_UPLOAD_BUFFERSIZE: