From bc36543705564bd86e61022ce15c6fc485b6eea6 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 10 Jul 2006 00:29:43 +0000 Subject: * eval.c (rb_clear_cache_for_remove): clear entries for included module. fixed: [ruby-core:08180] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 61f99a1c7..0457f841a 100644 --- a/eval.c +++ b/eval.c @@ -365,7 +365,8 @@ rb_clear_cache_for_remove(VALUE klass, ID id) for (i=0; iorigin == klass && ent->mid == id) { + if (ent->mid == id && + RCLASS(ent->origin)->m_tbl == RCLASS(klass)->m_tbl) { ent->mid = 0; } } -- cgit