summaryrefslogtreecommitdiff
path: root/id_table.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-10-13 12:07:57 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-10-13 12:07:57 +0900
commitbad61d34bed71ff3b68c6b1b29f038b305723cc0 (patch)
tree786f809a14a6e39a6d2fa5d03f43f5d42f6d0192 /id_table.c
parentaa5759a22b675d05d1f8cbfe4558eb37915c27fb (diff)
downloadruby-bad61d34bed71ff3b68c6b1b29f038b305723cc0.tar.gz
Qundef is not for ID
Diffstat (limited to 'id_table.c')
-rw-r--r--id_table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/id_table.c b/id_table.c
index 149f52cd88..b2ba6fae89 100644
--- a/id_table.c
+++ b/id_table.c
@@ -274,7 +274,7 @@ rb_id_table_foreach_with_replace(struct rb_id_table *tbl, rb_id_table_foreach_fu
for (i=0; i<capa; i++) {
if (ITEM_KEY_ISSET(tbl, i)) {
- enum rb_id_table_iterator_result ret = (*func)(Qundef, tbl->items[i].val, data);
+ enum rb_id_table_iterator_result ret = (*func)((ID)0, tbl->items[i].val, data);
assert(ITEM_GET_KEY(tbl, i));
if (ret == ID_TABLE_REPLACE) {