diff options
author | 2019-12-10 20:46:02 -0800 | |
---|---|---|
committer | 2020-04-12 16:05:01 -0700 | |
commit | 791c218b48b6557f24d479a7aa7d6586a612a128 (patch) | |
tree | b5adec1233537ef5d9dc622d9ca08f9c8335756c /src/common.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/common.c')
-rw-r--r-- | src/common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common.c b/src/common.c index 325ea2d..a1bfd09 100644 --- a/src/common.c +++ b/src/common.c @@ -245,7 +245,7 @@ void print_progress_bar(double progress) { else info(" "); } info("] %5.1f%%", progress); - if(progress == 100) info("\n"); + if(progress >= 100) info("\n"); fflush((info_stream) ? info_stream : stdout); #endif } @@ -469,7 +469,7 @@ void idevicerestore_progress(struct idevicerestore_client_t* client, int step, d } else { // we don't want to be too verbose in regular idevicerestore. if ((step == RESTORE_STEP_UPLOAD_FS) || (step == RESTORE_STEP_VERIFY_FS) || (step == RESTORE_STEP_FLASH_FW)) { - print_progress_bar(100.0f * progress); + print_progress_bar(100.0 * progress); } } } |