summaryrefslogtreecommitdiffhomepage
path: root/src/numeric.c
diff options
context:
space:
mode:
authorHiroshi Mimaki <[email protected]>2014-10-02 13:37:49 +0900
committerHiroshi Mimaki <[email protected]>2014-10-02 13:37:49 +0900
commited15477c74733d7394152434d6bd357c117e73e6 (patch)
tree81400bbaa8aa181789a78ac394cc8eb828873fbb /src/numeric.c
parent6b956f1c1b18e69529ba4daef886ff7c11621656 (diff)
downloadmruby-ed15477c74733d7394152434d6bd357c117e73e6.tar.gz
mruby-ed15477c74733d7394152434d6bd357c117e73e6.zip
Pacify MSVC warnings for numeric.c, proc.c, and symbol.c
Diffstat (limited to 'src/numeric.c')
-rw-r--r--src/numeric.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/numeric.c b/src/numeric.c
index da15c92cc..71dadf35f 100644
--- a/src/numeric.c
+++ b/src/numeric.c
@@ -699,7 +699,7 @@ mrb_fixnum_mul(mrb_state *mrb, mrb_value x, mrb_value y)
if ((a != 0 && c/a != b) || !FIXABLE(c)) {
return mrb_float_value(mrb, (mrb_float)a*(mrb_float)b);
}
- return mrb_fixnum_value(c);
+ return mrb_fixnum_value((mrb_int)c);
}
return mrb_float_value(mrb, (mrb_float)a * mrb_to_flo(mrb, y));
}