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:
a6d4d3e
)
prevent warning with comparison between signed and unsigned
author
Daniel Stenberg
<daniel@haxx.se>
Fri, 8 Oct 2004 08:16:02 +0000
(08:16 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Fri, 8 Oct 2004 08:16:02 +0000
(08:16 +0000)
lib/progress.c
patch
|
blob
|
history
diff --git
a/lib/progress.c
b/lib/progress.c
index
36be56e
..
55f316a
100644
(file)
--- a/
lib/progress.c
+++ b/
lib/progress.c
@@
-328,7
+328,7
@@
int Curl_pgrsUpdate(struct connectdata *conn)
curl_off_t amount = data->progress.speeder[nowindex]-
data->progress.speeder[checkindex];
- if(amount >
0xffffffff/1000
)
+ if(amount >
4294967 /* 0xffffffff/1000 */
)
/* the 'amount' value is bigger than would fit in 32 bits if
multiplied with 1000, so we use the double math for this */
data->progress.current_speed = (curl_off_t)