diff options
author | Yang Tse <yangsita@gmail.com> | 2010-11-28 20:49:40 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2010-11-28 20:49:40 +0100 |
commit | cbe67a1b71f7098779b8c0cecccb60382cec2d20 (patch) | |
tree | 45db211507034a722ffbe4d026898b278d84739a | |
parent | 23245ca83a3b6febe234f7a6aa600c015d7f62d8 (diff) |
multi: fix compiler warning: conversion may lose significant bits follow-up
-rw-r--r-- | lib/multi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/multi.c b/lib/multi.c index 2be553bdb..b57724e62 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -2141,7 +2141,7 @@ static CURLMcode multi_socket(struct Curl_multi *multi, now.tv_usec += 40000; /* compensate for bad precision timers that might've triggered too early */ - if(now.tv_usec > 1000000) { + if(now.tv_usec >= 1000000) { now.tv_sec++; now.tv_usec -= 1000000; } @@ -2573,7 +2573,7 @@ void Curl_expire(struct SessionHandle *data, long milli) set.tv_sec += milli/1000; set.tv_usec += (milli%1000)*1000; - if(set.tv_usec > 1000000) { + if(set.tv_usec >= 1000000) { set.tv_sec++; set.tv_usec -= 1000000; } |