Skip to content

Commit 4ba0cac

Browse files
committed
numeric.c (coerce_step_counter): move local variable definition
To avoid unused local variable warning.
1 parent 2b76967 commit 4ba0cac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/numeric.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,8 @@ static mrb_value
267267
coerce_step_counter(mrb_state *mrb, mrb_value self)
268268
{
269269
mrb->c->ci->mid = 0;
270-
mrb_value step = mrb_get_arg1(mrb);
271270
#ifndef MRB_NO_FLOAT
271+
mrb_value step = mrb_get_arg1(mrb);
272272
if (mrb_float_p(step)) {
273273
return mrb_ensure_float_type(mrb, self);
274274
}

0 commit comments

Comments
 (0)