aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/transfer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index d89dec673..bff16b4ff 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -364,7 +364,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
might be pipelining and then someone else might want to read what
follows! */
curl_off_t totalleft = k->size - k->bytecount;
- if(totalleft < bytestoread)
+ if(totalleft < (curl_off_t)bytestoread)
bytestoread = (size_t)totalleft;
}