]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
typecast the assigment of an unsigned variable to a signed one to prevent
authorDaniel Stenberg <daniel@haxx.se>
Mon, 9 Aug 2004 08:29:39 +0000 (08:29 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 9 Aug 2004 08:29:39 +0000 (08:29 +0000)
picky warnings

lib/transfer.c

index a12ae5f8655b17f31866977ccf41e035c00339f7..5fab2ffbeafafe1c985bc11b433487f3d6ed8287 100644 (file)
@@ -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;
               }