From 6c71265c8bfb4ae4999147c2306dc94da8b6f3e8 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Mon, 11 Sep 2017 22:54:31 +0200 Subject: [PATCH] Minor cleanup --- m-array.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/m-array.h b/m-array.h index 29a9c98f..8ebf153d 100644 --- a/m-array.h +++ b/m-array.h @@ -544,13 +544,14 @@ assert (it != NULL && org != NULL); \ it->index = org->index; \ it->array = org->array; \ + ARRAYI_CONTRACT(it->array); \ } \ \ static inline bool \ M_C(name, _end_p)(const array_it_t it) \ { \ assert(it != NULL && it->array != NULL); \ - return (it->index) >= it->array->size; \ + return it->index >= it->array->size; \ } \ \ static inline bool \ @@ -558,7 +559,7 @@ { \ assert(it != NULL && it->array != NULL); \ /* NOTE: Can not compute 'size-1' due to potential overflow \ - if size was 0 */ \ + if size is 0 */ \ return it->index + 1 >= it->array->size; \ } \ \