summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/numeric.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/numeric.c b/src/numeric.c
index a01293286..b22026ebb 100644
--- a/src/numeric.c
+++ b/src/numeric.c
@@ -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