summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
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;
}