1
0
mirror of https://gitlab.xiph.org/xiph/icecast-common.git synced 2024-12-04 14:46:31 -05:00

Fix: Corrected igloo_list_foreach()'s understanding of type and pointer-of-type

This commit is contained in:
Philipp Schafft 2018-11-08 13:26:09 +00:00
parent f744fff84d
commit 8255b1bd21

View File

@ -65,7 +65,7 @@ int igloo_list_iterator_rewind(igloo_list_iterator_t *iterat
do { \ do { \
igloo_list_iterator_storage_t __igloo_list_iterator_storage; \ igloo_list_iterator_storage_t __igloo_list_iterator_storage; \
igloo_list_iterator_t *__igloo_list_iterator = igloo_list_iterator_start((list), &__igloo_list_iterator_storage, sizeof(__igloo_list_iterator_storage)); \ igloo_list_iterator_t *__igloo_list_iterator = igloo_list_iterator_start((list), &__igloo_list_iterator_storage, sizeof(__igloo_list_iterator_storage)); \
type var; \ type * var; \
for (; !igloo_RO_IS_NULL((var) = igloo_RO_TO_TYPE(igloo_list_iterator_next(__igloo_list_iterator),type));) { \ for (; !igloo_RO_IS_NULL((var) = igloo_RO_TO_TYPE(igloo_list_iterator_next(__igloo_list_iterator),type));) { \
code; \ code; \
igloo_ro_unref((var)); \ igloo_ro_unref((var)); \