urldata: make 'buffer_size' an unsigned int

It is already capped at READBUFFER_MAX which fits easily in 32 bits.

Closes #9098
This commit is contained in:
Daniel Stenberg 2022-07-04 19:41:52 +02:00
parent cb17b12b01
commit 3fa343a35c
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
4 changed files with 5 additions and 4 deletions

View file

@ -2238,7 +2238,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 = arg;
data->set.buffer_size = (int)arg;
break;
case CURLOPT_UPLOAD_BUFFERSIZE: