]> granicus.if.org Git - curl/commitdiff
fix compiler warning
authorYang Tse <yangsita@gmail.com>
Sat, 7 Apr 2007 00:38:46 +0000 (00:38 +0000)
committerYang Tse <yangsita@gmail.com>
Sat, 7 Apr 2007 00:38:46 +0000 (00:38 +0000)
lib/transfer.c

index a7b3a724d17e8267192142ad402814ab37293626..f4b0380d356e1119399c8d4f48e4edf1a44c2f56 100644 (file)
@@ -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"