From c3114c439b92f5bfaa6ec1a9e1d47b04e31f1c0f Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Thu, 6 Jul 2017 10:19:08 +0200 Subject: [PATCH] Remove a contract from _clear since it has not to be true. Add const to a proto. --- m-array.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/m-array.h b/m-array.h index a89885db..6a4bbcef 100644 --- a/m-array.h +++ b/m-array.h @@ -139,7 +139,6 @@ M_GET_FREE oplist(v->ptr); \ v->alloc = 0; \ v->ptr = NULL; \ - ARRAYI_CONTRACT(v); \ } \ \ static inline void \ @@ -569,7 +568,7 @@ } \ \ static inline type * \ - M_C3(array_, name, _ref)(array_it_t it) \ + M_C3(array_, name, _ref)(const array_it_t it) \ { \ assert(it != NULL); \ return M_C3(array_, name, _get)(it->array, it->index); \