]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
fix compiler warning
authorYang Tse <yangsita@gmail.com>
Mon, 2 Apr 2007 02:13:26 +0000 (02:13 +0000)
committerYang Tse <yangsita@gmail.com>
Mon, 2 Apr 2007 02:13:26 +0000 (02:13 +0000)
lib/select.c

index e39174f1a53b318af59be06d84d6a5b5f6a63126..83484eeeb3a4273b46e50d310df7ca36a3ddc9eb 100644 (file)
@@ -479,7 +479,7 @@ int Curl_select(int nfds,
       SET_SOCKERRNO(EINVAL);
       return -1;
     }
-    timeout_ms = (timeout->tv_sec * 1000) + (timeout->tv_usec / 1000);
+    timeout_ms = (int)(timeout->tv_sec * 1000) + (int)(timeout->tv_usec / 1000);
   }
   else {
     timeout_ms = -1;