diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-08-30 10:46:37 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-08-30 10:46:37 +0000 |
| commit | f07975d6a8e8693abe4b824577ca31293acb52db (patch) | |
| tree | cd00118717e877f3e7b31f6310c400b90b94062d /variable.c | |
| parent | b033319e7efd8d11efa9b3136479f43916c3f8ba (diff) | |
| download | ruby-f07975d6a8e8693abe4b824577ca31293acb52db.tar.gz ruby-f07975d6a8e8693abe4b824577ca31293acb52db.tar.xz ruby-f07975d6a8e8693abe4b824577ca31293acb52db.zip | |
* variable.c (rb_const_assign): st_delete() takes pointer to key.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
| -rw-r--r-- | variable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/variable.c b/variable.c index 28b3f965b..0b2c8ebe0 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; } |
