diff --git a/src/list.c b/src/list.c index f528e11..c76cd8b 100644 --- a/src/list.c +++ b/src/list.c @@ -294,7 +294,7 @@ igloo_ro_t igloo_list_iterator_next(igloo_list_iterator_t *iterator if (physical >= iterator->list->fill) return igloo_RO_NULL; - if (igloo_ro_unref(iterator->list->elements[physical]) == 0) + if (igloo_ro_ref(iterator->list->elements[physical]) != 0) return igloo_RO_NULL; iterator->idx++;