From 1a890997a47d4d22df58b5183181685e49ed6e61 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 31 Aug 2018 10:17:40 +0200 Subject: all: s/int/size_t cleanup Assisted-by: Rikard Falkeborn Closes #2922 --- lib/smb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/smb.c') diff --git a/lib/smb.c b/lib/smb.c index 32f0ac889..e4b18fcf5 100644 --- a/lib/smb.c +++ b/lib/smb.c @@ -610,8 +610,8 @@ static CURLcode smb_send_and_recv(struct connectdata *conn, void **msg) /* Check if there is data in the transfer buffer */ if(!smbc->send_size && smbc->upload_size) { - int nread = smbc->upload_size > UPLOAD_BUFSIZE ? UPLOAD_BUFSIZE : - (int) smbc->upload_size; + size_t nread = smbc->upload_size > UPLOAD_BUFSIZE ? UPLOAD_BUFSIZE : + smbc->upload_size; conn->data->req.upload_fromhere = conn->data->state.ulbuf; result = Curl_fillreadbuffer(conn, nread, &nread); if(result && result != CURLE_AGAIN) -- cgit v1.2.3