зеркало из https://github.com/github/ruby.git
* variable.c (rb_const_assign): st_delete() takes pointer to key.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
09a27c5a90
Коммит
6e4ed1ffd3
|
@ -1,3 +1,7 @@
|
|||
Fri Aug 30 19:45:52 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||
|
||||
* variable.c (rb_const_assign): st_delete() takes pointer to key.
|
||||
|
||||
Fri Aug 30 19:40:28 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||
|
||||
* ext/Win32API/Win32API.c (Win32API_Call): RSTRING()->ptr may be
|
||||
|
|
|
@ -1371,7 +1371,7 @@ rb_const_assign(klass, id, val)
|
|||
}
|
||||
/* pre-defined class */
|
||||
if (st_lookup(rb_class_tbl, id, 0)) {
|
||||
st_delete(rb_class_tbl, id, 0);
|
||||
st_delete(rb_class_tbl, &id, 0);
|
||||
st_insert(RCLASS(rb_cObject)->iv_tbl, id, val);
|
||||
return;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче