summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-10 00:30:40 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-10 00:30:40 +0000
commit010de8e28c7c12b679e3b1249c86a099db2f94b2 (patch)
tree51ce05182616218448a625fc23a049c5778f61d0 /eval.c
parent50102f21cd03dc96b20cee4029553609f6064719 (diff)
* eval.c (rb_clear_cache_for_undef): clear entries for included
module. fixed: [ruby-core:08180] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index f099654d1c..9a909557e8 100644
--- a/eval.c
+++ b/eval.c
@@ -366,7 +366,8 @@ rb_clear_cache_for_undef(klass, id)
if (!ruby_running) return;
ent = cache; end = ent + CACHE_SIZE;
while (ent < end) {
- if (ent->origin == klass && ent->mid == id) {
+ if (ent->mid == id &&
+ RCLASS(ent->origin)->m_tbl == RCLASS(klass)->m_tbl) {
ent->mid = 0;
}
ent++;