Skip to content

Commit

Permalink
fix implicit conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Macheta committed Jan 4, 2024
1 parent 9566db3 commit 32d8316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/third_party/printf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 32d8316

Please sign in to comment.