numeric.c (coerce_step_counter): move local variable definition

To avoid unused local variable warning.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-03-09 16:42:28 +09:00
parent 2b76967724
commit 4ba0cac481
+1 -1
View File
@@ -267,8 +267,8 @@ static mrb_value
coerce_step_counter(mrb_state *mrb, mrb_value self)
{
mrb->c->ci->mid = 0;
mrb_value step = mrb_get_arg1(mrb);
#ifndef MRB_NO_FLOAT
mrb_value step = mrb_get_arg1(mrb);
if (mrb_float_p(step)) {
return mrb_ensure_float_type(mrb, self);
}