Remove a contract from _clear since it has not to be true.
Add const to a proto.
This commit is contained in:
1 parent
5fae797e41
commit
c3114c439b
1 file changed
+1
-2
@@ -139,7 +139,6 @@
|
|||||||
M_GET_FREE oplist(v->ptr); \
|
M_GET_FREE oplist(v->ptr); \
|
||||||
v->alloc = 0; \
|
v->alloc = 0; \
|
||||||
v->ptr = NULL; \
|
v->ptr = NULL; \
|
||||||
ARRAYI_CONTRACT(v); \
|
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
static inline void \
|
static inline void \
|
||||||
@@ -569,7 +568,7 @@
|
|||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
static inline type * \
|
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); \
|
assert(it != NULL); \
|
||||||
return M_C3(array_, name, _get)(it->array, it->index); \
|
return M_C3(array_, name, _get)(it->array, it->index); \
|
||||||
|
|||||||
Reference in new issue
Block a user