projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23245ca
)
multi: fix compiler warning: conversion may lose significant bits follow-up
author
Yang Tse
<yangsita@gmail.com>
Sun, 28 Nov 2010 19:49:40 +0000
(20:49 +0100)
committer
Yang Tse
<yangsita@gmail.com>
Sun, 28 Nov 2010 19:49:40 +0000
(20:49 +0100)
lib/multi.c
patch
|
blob
|
history
diff --git
a/lib/multi.c
b/lib/multi.c
index
2be553b
..
b57724e
100644
(file)
--- 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;
}