diff options
author | Rosen Penev | 2019-12-10 20:46:02 -0800 |
---|---|---|
committer | Rosen Penev | 2020-04-12 16:05:01 -0700 |
commit | 791c218b48b6557f24d479a7aa7d6586a612a128 (patch) | |
tree | b5adec1233537ef5d9dc622d9ca08f9c8335756c /src/download.c | |
parent | e29aef80350b5ee4bf989443acf553f5f295df4c (diff) | |
download | idevicerestore-791c218b48b6557f24d479a7aa7d6586a612a128.tar.gz idevicerestore-791c218b48b6557f24d479a7aa7d6586a612a128.tar.bz2 |
Fix unnecessary double promotion
Found with -Wdouble-promotion and -Wfloat-equal
Diffstat (limited to 'src/download.c')
-rw-r--r-- | src/download.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/download.c b/src/download.c index 2194091..a258da2 100644 --- a/src/download.c +++ b/src/download.c @@ -92,7 +92,7 @@ static int download_progress(void *clientp, double dltotal, double dlnow, double { double p = (dlnow / dltotal) * 100; - if (p < 100.0f) { + if (p < 100.0) { if ((int)p > lastprogress) { info("downloading: %d%%\n", (int)p); lastprogress = (int)p; |