Fix issue for last_p which doesn't detect an end of iteration as valid.
This commit is contained in:
1 parent
ff5691f0cd
commit
ac48547fee
1 file changed
+1
-1
+1
-1
@@ -257,7 +257,7 @@ typedef struct ilist_head_s {
|
||||
M_C3(ilist_, name, _last_p)(const list_it_t it) \
|
||||
{ \
|
||||
assert (it != NULL); \
|
||||
return it->next == it->head; \
|
||||
return it->next == it->head || it->current == it->head; \
|
||||
} \
|
||||
\
|
||||
static inline void \
|
||||
|
||||
Reference in new issue
Block a user