From 054770068a69dea492a2702533556f42fe1fdcc7 Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 12 Aug 2009 06:54:45 +0000 Subject: * class.c (rb_define_module_id_under): fix the name. * class.c (rb_define_module_under): fix for prevvious changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- class.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'class.c') diff --git a/class.c b/class.c index 93b696798d..c64cbe72db 100644 --- a/class.c +++ b/class.c @@ -437,7 +437,7 @@ rb_define_module_under(VALUE outer, const char *name) } VALUE -rb_define_module_under(VALUE outer, ID id) +rb_define_module_id_under(VALUE outer, ID id) { VALUE module; @@ -450,7 +450,7 @@ rb_define_module_under(VALUE outer, ID id) } module = rb_define_module_id(id); rb_const_set(outer, id, module); - rb_set_class_path(module, outer, name); + rb_set_class_path_string(module, outer, rb_id2str(id)); return module; } -- cgit v1.2.3