Skip to content

Commit

Permalink
fmt_fp.c: add type cast to remove a warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Apr 27, 2022
1 parent 132d55c commit 6499efb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fmt_fp.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ mrb_format_float(mrb_float f, char *buf, size_t buf_size, char fmt, int prec, ch
} else if (sign) {
*s++ = sign;
}
buf_remaining -= (s - buf); // Adjust for sign
buf_remaining -= (int)(s - buf); // Adjust for sign

{
char uc = fmt & 0x20;
Expand Down

0 comments on commit 6499efb

Please sign in to comment.