Use of M_ASSERT_INDEX for list.

This commit is contained in:
Patrick Pelissier committed 2020-10-23 21:39:33 +02:00
1 parent 201cc45fd8
commit 067a034bc9
1 file changed
+1 -1
+1 -1
View File
@@ -461,7 +461,7 @@
struct M_C(name, _s) *it = *list; \
/* FIXME: How to avoid the double iteration over the list? */ \
size_t len = M_C(name,_size)(list); \
assert (i < len); \
M_ASSERT_INDEX (i, len); \
size_t j = len-1; \
while (true) { \
assert (it != NULL); \