From: Daniel Stenberg Date: Mon, 9 Aug 2004 08:29:39 +0000 (+0000) Subject: typecast the assigment of an unsigned variable to a signed one to prevent X-Git-Tag: curl-7_12_1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=827a805966e101edee6f05af75d13279f0ad1add;p=thirdparty%2Fcurl.git typecast the assigment of an unsigned variable to a signed one to prevent picky warnings --- diff --git a/lib/transfer.c b/lib/transfer.c index a12ae5f865..5fab2ffbea 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -403,7 +403,7 @@ CURLcode Curl_readwrite(struct connectdata *conn, else { /* this was all we read so its all a bad header */ k->badheader = HEADER_ALLBAD; - nread = rest_length; + nread = (ssize_t)rest_length; } break; }