summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--variable.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index adfb263..483eb31 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
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;
}