mruby-rational: move misplaced #ifndef MRB_NO_FLOAT

This commit is contained in:
Yukihiro "Matz" Matsumoto
2024-01-07 23:54:59 +09:00
parent be3b93ecb9
commit 2cf6f7f5c7
+2 -1
View File
@@ -702,9 +702,10 @@ rational_div(mrb_state *mrb, mrb_value x)
static mrb_value
rational_pow(mrb_state *mrb, mrb_value x)
{
#ifndef MRB_NO_FLOAT
mrb_value y = mrb_get_arg1(mrb);
struct mrb_rational *p1 = rational_ptr(mrb, x);
#ifndef MRB_NO_FLOAT
double d1, d2;
switch (mrb_type(y)) {