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 a12ae5f..5fab2ff 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;
               }