From 067a034bc91f4fdbe62de86c4a4cb46937d7c2b2 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Fri, 23 Oct 2020 21:39:33 +0200 Subject: [PATCH] Use of M_ASSERT_INDEX for list. --- m-list.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m-list.h b/m-list.h index 73f6c884..a351f659 100644 --- a/m-list.h +++ b/m-list.h @@ -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); \