aboutsummaryrefslogtreecommitdiff
path: root/lib/progress.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-07-01 07:28:36 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-07-01 07:28:36 +0000
commit18dc8fbc262a411e71b5665adc322f98fd7636a1 (patch)
tree29d2f9f707892e588fce0b2f9d340d196c022387 /lib/progress.c
parentd9ceee1c755b17b50300cdcff1c3a6357dd1905d (diff)
typecast to int when the variable is int!
Diffstat (limited to 'lib/progress.c')
-rw-r--r--lib/progress.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/progress.c b/lib/progress.c
index 27cde9c38..9d354679c 100644
--- a/lib/progress.c
+++ b/lib/progress.c
@@ -366,7 +366,7 @@ int Curl_pgrsUpdate(struct connectdata *conn)
(data->progress.ulspeed>0) &&
(data->progress.size_ul > 100) ) {
ulestimate = (long)(data->progress.size_ul / data->progress.ulspeed);
- ulpercen = (long)(100*(data->progress.uploaded/100) /
+ ulpercen = (int)(100*(data->progress.uploaded/100) /
(data->progress.size_ul/100) );
}
@@ -375,7 +375,7 @@ int Curl_pgrsUpdate(struct connectdata *conn)
(data->progress.dlspeed>0) &&
(data->progress.size_dl>100)) {
dlestimate = (long)(data->progress.size_dl / data->progress.dlspeed);
- dlpercen = (long)(100*(data->progress.downloaded/100) /
+ dlpercen = (int)(100*(data->progress.downloaded/100) /
(data->progress.size_dl/100));
}