From 4ba0cac481e0cec6d04286c6c25f2acf7f2b31fb Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Sun, 9 Mar 2025 16:42:28 +0900 Subject: [PATCH] numeric.c (coerce_step_counter): move local variable definition To avoid unused local variable warning. --- src/numeric.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/numeric.c b/src/numeric.c index 9fe516b10..78e282440 100644 --- a/src/numeric.c +++ b/src/numeric.c @@ -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); }