numeric.c: `self` should always be an integer in `__coerce_step_counter`.

parent be6d5598
......@@ -211,7 +211,7 @@ coerce_step_counter(mrb_state *mrb, mrb_value self)
#ifndef MRB_NO_FLOAT
mrb->c->ci->mid = 0;
if (mrb_float_p(self) || mrb_float_p(num) || mrb_float_p(step)) {
if (mrb_float_p(num) || mrb_float_p(step)) {
return mrb_to_float(mrb, self);
}
#endif
......
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