1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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:
nobu 2002-08-30 10:46:37 +00:00
parent 09a27c5a90
commit 6e4ed1ffd3
2 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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;
}