From 837c76bd7baee9aaeebd94b4c0719094e1463ff5 Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 5 May 2008 15:01:42 +0000 Subject: * compile.c (iseq_compile_each): should call compile_cpath() for modules as well. [ruby-dev:34585] * insns.def (defineclass): add undef handling. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compile.c') diff --git a/compile.c b/compile.c index 7b077a30b4..93bcb8a12f 100644 --- a/compile.c +++ b/compile.c @@ -4310,7 +4310,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped) rb_sprintf("", rb_id2name(node->nd_cpath->nd_mid)), ISEQ_TYPE_CLASS); - COMPILE(ret, "mbase", node->nd_cpath->nd_head); + compile_cpath(ret, iseq, node->nd_cpath); ADD_INSN (ret, nd_line(node), putnil); /* dummy */ ADD_INSN3(ret, nd_line(node), defineclass, ID2SYM(node->nd_cpath->nd_mid), iseqval, INT2FIX(2)); -- cgit v1.2.3