summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-08-30 10:46:37 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-08-30 10:46:37 +0000
commit6e4ed1ffd3226ac53161f6c085d84f6f890ba502 (patch)
treecd00118717e877f3e7b31f6310c400b90b94062d /variable.c
parent09a27c5a9040ce2176de075569dc6690f893a193 (diff)
* 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
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/variable.c b/variable.c
index 28b3f96..0b2c8eb 100644
--- a/variable.c
+++ b/variable.c
@@ -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;
}