diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-10-08 08:16:02 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-10-08 08:16:02 +0000 |
commit | fe46572f2b6c9380feabb3a22bff349f13456531 (patch) | |
tree | 392969b1d40f8e0bd60f9095e2180a535bc92375 /lib/progress.c | |
parent | a6d4d3eeac8c6e0e8def305f3b6bcab43361a210 (diff) |
prevent warning with comparison between signed and unsigned
Diffstat (limited to 'lib/progress.c')
-rw-r--r-- | lib/progress.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/progress.c b/lib/progress.c index 36be56ea4..55f316acc 100644 --- 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) |