]> granicus.if.org Git - curl/commitdiff
Fix compiler warning
authorYang Tse <yangsita@gmail.com>
Mon, 14 Dec 2009 16:05:57 +0000 (16:05 +0000)
committerYang Tse <yangsita@gmail.com>
Mon, 14 Dec 2009 16:05:57 +0000 (16:05 +0000)
lib/imap.c

index fecba3c252d500ffe0813e47272b3241146104df..505a6ba21c183026a79ea76340bc9d8d9b777c00 100644 (file)
@@ -408,7 +408,7 @@ static CURLcode imap_state_fetch_resp(struct connectdata *conn,
          that there may even be additional "headers" after the body. */
       size_t chunk = pp->cache_size;
 
-      if(chunk > filesize)
+      if(chunk > (size_t)filesize)
         /* the conversion from curl_off_t to size_t is always fine here */
         chunk = (size_t)filesize;