Add explicit cast from float to mrb_int.

parent 631de65e
......@@ -372,7 +372,7 @@ flo_shift(mrb_state *mrb, mrb_value x, mrb_int width)
}
}
if (FIXABLE(val)) {
return mrb_fixnum_value(val);
return mrb_fixnum_value((mrb_int)val);
}
return mrb_float_value(mrb, val);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment