From 47594be5c0d28a77f1cecf3cb7badc975f9a9297 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sat, 7 Apr 2007 00:38:46 +0000 Subject: fix compiler warning --- lib/transfer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/transfer.c') diff --git a/lib/transfer.c b/lib/transfer.c index a7b3a724d..f4b0380d3 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -1252,7 +1252,7 @@ CURLcode Curl_readwrite(struct connectdata *conn, (k->bytecount + nread >= k->maxdownload)) { /* The 'excess' amount below can't be more than BUFSIZE which always will fit in a size_t */ - size_t excess = k->bytecount + nread - k->maxdownload; + size_t excess = (size_t)(k->bytecount + nread - k->maxdownload); if (excess > 0 && !k->ignorebody) { infof(data, "Rewinding stream by : %d" -- cgit v1.2.3