mruby-math: use mrb_define_module_id instead of mrb_define_module

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-10-07 00:24:30 +09:00
parent 9736e37a31
commit e1f7a40d5a
+1 -1
View File
@@ -697,7 +697,7 @@ math_erfc(mrb_state *mrb, mrb_value obj)
void
mrb_mruby_math_gem_init(mrb_state* mrb)
{
struct RClass *math = mrb_define_module(mrb, "Math");
struct RClass *math = mrb_define_module_id(mrb, MRB_SYM(Math));
mrb_define_class_under_id(mrb, math, MRB_SYM(DomainError), E_STANDARD_ERROR);