From 32d83164427fb0e53e2e0c87b2279d17b32ad9ca Mon Sep 17 00:00:00 2001 From: Jan Macheta Date: Thu, 4 Jan 2024 23:21:32 +0100 Subject: [PATCH] fix implicit conversions --- src/third_party/printf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/third_party/printf.c b/src/third_party/printf.c index ff8a446..339cf98 100644 --- a/src/third_party/printf.c +++ b/src/third_party/printf.c @@ -380,7 +380,7 @@ static size_t _ftoa(out_fct_type out, char* buffer, size_t idx, size_t maxlen, d if (diff > 0.5) { ++frac; // handle rollover, e.g. case 0.99 with prec 1 is 1.0 - if (frac >= pow10[prec]) { + if ((double)frac >= pow10[prec]) { frac = 0; ++whole; }