Minor cleanup
This commit is contained in:
1 parent
a6a89f269f
commit
6c71265c8b
1 file changed
+3
-2
@@ -544,13 +544,14 @@
|
|||||||
assert (it != NULL && org != NULL); \
|
assert (it != NULL && org != NULL); \
|
||||||
it->index = org->index; \
|
it->index = org->index; \
|
||||||
it->array = org->array; \
|
it->array = org->array; \
|
||||||
|
ARRAYI_CONTRACT(it->array); \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
static inline bool \
|
static inline bool \
|
||||||
M_C(name, _end_p)(const array_it_t it) \
|
M_C(name, _end_p)(const array_it_t it) \
|
||||||
{ \
|
{ \
|
||||||
assert(it != NULL && it->array != NULL); \
|
assert(it != NULL && it->array != NULL); \
|
||||||
return (it->index) >= it->array->size; \
|
return it->index >= it->array->size; \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
static inline bool \
|
static inline bool \
|
||||||
@@ -558,7 +559,7 @@
|
|||||||
{ \
|
{ \
|
||||||
assert(it != NULL && it->array != NULL); \
|
assert(it != NULL && it->array != NULL); \
|
||||||
/* NOTE: Can not compute 'size-1' due to potential overflow \
|
/* 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; \
|
return it->index + 1 >= it->array->size; \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
|
|||||||
Reference in new issue
Block a user