зеркало из https://github.com/github/ruby.git
* eval.c (rb_clear_cache_for_remove): clear entries for included
module. fixed: [ruby-core:08180] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
624ae68379
Коммит
4696270c72
|
@ -1,3 +1,8 @@
|
|||
Mon Jul 10 09:29:12 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* eval.c (rb_clear_cache_for_remove): clear entries for included
|
||||
module. fixed: [ruby-core:08180]
|
||||
|
||||
Sun Jul 9 18:06:47 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/mkmf.rb (try_constant): fix for value 1 at cross compiling.
|
||||
|
|
3
eval.c
3
eval.c
|
@ -365,7 +365,8 @@ rb_clear_cache_for_remove(VALUE klass, ID id)
|
|||
for (i=0; i<CACHE_SIZE; i++) {
|
||||
for (j=0; j<2; j++) {
|
||||
struct cache_entry *ent = cache[j]+i;
|
||||
if (ent->origin == klass && ent->mid == id) {
|
||||
if (ent->mid == id &&
|
||||
RCLASS(ent->origin)->m_tbl == RCLASS(klass)->m_tbl) {
|
||||
ent->mid = 0;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче