diff options
author | Rose <83477269+AtariDreams@users.noreply.github.com> | 2022-10-28 12:32:09 -0400 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2022-11-08 03:11:01 -0500 |
commit | f151ec6c1053826bdcc740d97257d877b759e777 (patch) | |
tree | 6da9daa805268783d6b3fb75dde3cb5007ab4fb9 /lib/setopt.c | |
parent | 14061f784c47069d20d17dd9d6c6cf4613efeca5 (diff) | |
download | curl-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.c | 2 |
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: |