mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
numeric.c (coerce_step_counter): move local variable definition
To avoid unused local variable warning.
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user