fix compiler warning: enumerated type mixed with another type
authorYang Tse <yangsita@gmail.com>
Sat, 11 Apr 2009 02:11:02 +0000 (02:11 +0000)
committerYang Tse <yangsita@gmail.com>
Sat, 11 Apr 2009 02:11:02 +0000 (02:11 +0000)
lib/easy.c

index a581934..1555859 100644 (file)
@@ -1096,7 +1096,7 @@ CURLcode curl_easy_recv(CURL *curl, void *buffer, size_t buflen, size_t *n)
     return CURLE_AGAIN;
 
   if(ret1 != CURLE_OK)
-    return ret1;
+    return (CURLcode)ret1;
 
   *n = (size_t)n1;