src/cx/iterator.h

changeset 497
b182a8b8a1af
parent 496
1a07e24801a9
child 500
eb9e7bd40a8e
     1.1 --- a/src/cx/iterator.h	Sat Jan 22 19:04:32 2022 +0100
     1.2 +++ b/src/cx/iterator.h	Sat Jan 22 19:10:04 2022 +0100
     1.3 @@ -138,6 +138,6 @@
     1.4   * @param iter the iterator
     1.5   */
     1.6  #define cx_foreach(type, elem, iter) \
     1.7 -for (type *elem; cxIteratorValid(&iter) && (elem = cxIteratorCurrent(&iter)) != NULL ; cxIteratorNext(&iter)) // NOLINT(bugprone-macro-parentheses)
     1.8 +for (type elem; cxIteratorValid(&iter) && (elem = cxIteratorCurrent(&iter)) != NULL ; cxIteratorNext(&iter)) // NOLINT(bugprone-macro-parentheses)
     1.9  
    1.10  #endif /* UCX_ITERATOR_H */

mercurial