From 78c9c71bdf5c9160a2a711d971ae319e388313dc Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Fri, 5 Jun 2020 17:52:22 +0900 Subject: Add proper cast. --- src/fmt_fp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/fmt_fp.c b/src/fmt_fp.c index b151e81fb..81ace6ec8 100644 --- a/src/fmt_fp.c +++ b/src/fmt_fp.c @@ -440,7 +440,7 @@ mrb_float_to_cstr(mrb_state *mrb, char *buf, size_t len, const char *fmt, mrb_fl mrb_raise(mrb, E_ARGUMENT_ERROR, "invalid format string"); } *cstr.buf = '\0'; - return (int)cstr.buf - buf; + return (int)(cstr.buf - buf); } #else /* MRB_DISABLE_STDIO || _WIN32 || _WIN64 */ #include -- cgit v1.2.3