summaryrefslogtreecommitdiff
path: root/lib/select.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-06-11 22:56:45 +0200
committerDaniel Stenberg <daniel@haxx.se>2011-06-11 22:56:45 +0200
commitee015947d4b82c53c16c50502e46c1af339d0c25 (patch)
tree90f37cf57b03f6b7a4c536b0deea10c6b85de3c5 /lib/select.c
parenta2a286330610dddd18821a415e95bb957044d657 (diff)
downloadcurl-ee015947d4b82c53c16c50502e46c1af339d0c25.tar.gz
long/int mess
Typecast when converting to int from long to avoid some compiler warnings
Diffstat (limited to 'lib/select.c')
-rw-r--r--lib/select.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/select.c b/lib/select.c
index ab491c3ce..8f6541dee 100644
--- a/lib/select.c
+++ b/lib/select.c
@@ -190,7 +190,7 @@ int Curl_socket_ready(curl_socket_t readfd, curl_socket_t writefd,
value indicating a blocking call should be performed. */
if(timeout_ms > 0) {
- pending_ms = timeout_ms;
+ pending_ms = (int)timeout_ms;
initial_tv = curlx_tvnow();
}
@@ -222,7 +222,7 @@ int Curl_socket_ready(curl_socket_t readfd, curl_socket_t writefd,
if(error && error_not_EINTR)
break;
if(timeout_ms > 0) {
- pending_ms = timeout_ms - elapsed_ms;
+ pending_ms = (int)(timeout_ms - elapsed_ms);
if(pending_ms <= 0)
break;
}