Fix issue for last_p which doesn't detect an end of iteration as valid.

This commit is contained in:
Patrick Pelissier committed 2017-07-15 21:32:07 +02:00
1 parent ff5691f0cd
commit ac48547fee
1 file changed
+1 -1
+1 -1
View File
@@ -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 \