numeric_ext.c: use the reference from mrb structure.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-09-09 21:58:22 +09:00
parent f05574606e
commit fc85523cf1
+1 -1
View File
@@ -130,7 +130,7 @@ flo_remainder(mrb_state *mrb, mrb_value self)
void
mrb_mruby_numeric_ext_gem_init(mrb_state* mrb)
{
struct RClass *i = mrb_class_get(mrb, "Integer");
struct RClass *i = mrb->integer_class;
mrb_define_alias(mrb, i, "modulo", "%");
mrb_define_method(mrb, i, "remainder", int_remainder, MRB_ARGS_REQ(1));