numeric.c (cmpnum): use mrb_as_int() instead of mrb_integer()

This commit is contained in:
Yukihiro "Matz" Matsumoto
2024-06-15 23:45:30 +09:00
parent b44dc1c0b9
commit d1592ba9f9
+1 -1
View File
@@ -1897,7 +1897,7 @@ cmpnum(mrb_state *mrb, mrb_value v1, mrb_value v2)
#endif
#ifdef MRB_NO_FLOAT
x = mrb_integer(v1);
x = mrb_as_int(mrb, v1);
#else
x = mrb_as_float(mrb, v1);
#endif