mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
fmt_fp.c: add type cast to remove a warning.
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user