From 3fa343a35c9d65ebbcad5d028bbd6f14cde1af00 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 4 Jul 2022 19:41:52 +0200 Subject: urldata: make 'buffer_size' an unsigned int It is already capped at READBUFFER_MAX which fits easily in 32 bits. Closes #9098 --- lib/setopt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/setopt.c') diff --git a/lib/setopt.c b/lib/setopt.c index bb0e700fb..ba36b495c 100644 --- a/lib/setopt.c +++ b/lib/setopt.c @@ -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: -- cgit v1.2.1