Qundef is not for ID
This commit is contained in:
parent
aa5759a22b
commit
bad61d34be
@ -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++) {
|
for (i=0; i<capa; i++) {
|
||||||
if (ITEM_KEY_ISSET(tbl, 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));
|
assert(ITEM_GET_KEY(tbl, i));
|
||||||
|
|
||||||
if (ret == ID_TABLE_REPLACE) {
|
if (ret == ID_TABLE_REPLACE) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user