From 791c218b48b6557f24d479a7aa7d6586a612a128 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Tue, 10 Dec 2019 20:46:02 -0800 Subject: Fix unnecessary double promotion Found with -Wdouble-promotion and -Wfloat-equal --- src/download.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/download.c') 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; -- cgit v1.1-32-gdbae