summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 4f5d18a355..b6ad18cd51 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -4043,7 +4043,7 @@ static VALUE
vm_declare_module(ID id, VALUE cbase)
{
/* new module declaration */
- return declare_under(id, cbase, rb_define_module_id(id));
+ return declare_under(id, cbase, rb_module_new());
}
NORETURN(static void unmatched_redefinition(const char *type, VALUE cbase, ID id, VALUE old));