aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-05-05 07:30:52 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-05-05 07:30:52 +0000
commit6def0892eaea1a4fd174b74a95d637a30a6a6d18 (patch)
tree7d57e6d41dad442ca9e64a7672f029bd3db3cb13
parent1c0744bde6e9eafaa737bb282e89d0cab730349b (diff)
additional typecasts in an attempt to avoid compiler warnings when switching
from 64 bit types to 32 bit ones
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 23c103a03..a11f0277c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2278,7 +2278,7 @@ static int my_fwrite(void *buffer, size_t sz, size_t nmemb, void *stream)
if( size*1000 > config->recvpersecond*timediff) {
/* figure out how many milliseconds to rest */
- sleep_time = size*1000/config->recvpersecond - timediff;
+ sleep_time = (long)(size*1000/config->recvpersecond - timediff);
/*
* Make sure we don't sleep for so long that we trigger the speed
@@ -2351,7 +2351,7 @@ static int my_fread(void *buffer, size_t sz, size_t nmemb, void *userp)
if( xfered*1000 > config->sendpersecond*timediff) {
/* figure out how many milliseconds to rest */
- sleep_time = xfered*1000/config->sendpersecond - timediff;
+ sleep_time = (long)(xfered*1000/config->sendpersecond - timediff);
if(sleep_time > 0) {
go_sleep (sleep_time);
now = curlx_tvnow();
@@ -2361,7 +2361,7 @@ static int my_fread(void *buffer, size_t sz, size_t nmemb, void *userp)
if(size > config->sendpersecond) {
/* lower the size to actually read */
- nmemb = config->sendpersecond;
+ nmemb = (size_t)config->sendpersecond;
sz = 1;
}
}