From 8255b1bd212ceeb79ccc91cab22aca3ac922e3b6 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Thu, 8 Nov 2018 13:26:09 +0000 Subject: [PATCH] Fix: Corrected igloo_list_foreach()'s understanding of type and pointer-of-type --- include/igloo/list.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/igloo/list.h b/include/igloo/list.h index bf90eac..5bf1264 100644 --- a/include/igloo/list.h +++ b/include/igloo/list.h @@ -65,7 +65,7 @@ int igloo_list_iterator_rewind(igloo_list_iterator_t *iterat do { \ 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)); \ - type var; \ + type * var; \ for (; !igloo_RO_IS_NULL((var) = igloo_RO_TO_TYPE(igloo_list_iterator_next(__igloo_list_iterator),type));) { \ code; \ igloo_ro_unref((var)); \