fix compiler warning: enumerated type mixed with another type
authorYang Tse <yangsita@gmail.com>
Thu, 17 Sep 2009 16:11:54 +0000 (16:11 +0000)
committerYang Tse <yangsita@gmail.com>
Thu, 17 Sep 2009 16:11:54 +0000 (16:11 +0000)
lib/ftp.c

index 99115dd..a233223 100644 (file)
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -445,7 +445,7 @@ static CURLcode ftp_readresp(curl_socket_t sockfd,
 #endif /* CURL_DOES_CONVERSIONS */
 
       if(CURLE_OK != res) {
-        result = res;  /* Set the outer result variable to this error. */
+        result = (CURLcode)res; /* Set outer result variable to this error. */
         keepon = FALSE;
       }
     }