summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cpque.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/stc/cpque.h')
-rw-r--r--include/stc/cpque.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stc/cpque.h b/include/stc/cpque.h
index 8bb70216..59419f16 100644
--- a/include/stc/cpque.h
+++ b/include/stc/cpque.h
@@ -55,7 +55,7 @@ STC_INLINE _cx_self _cx_memb(_from_n)(const _cx_raw* raw, size_t n)
STC_INLINE bool _cx_memb(_reserve)(_cx_self* self, const size_t cap) {
if (cap != self->_len && cap <= self->_cap) return true;
- _cx_value *d = (_cx_value *)c_REALLOC(self->data, cap*sizeof *d);
+ _cx_value *d = (_cx_value *)c_realloc(self->data, cap*sizeof *d);
return d ? (self->data = d, self->_cap = cap, true) : false;
}
@@ -79,7 +79,7 @@ STC_INLINE void _cx_memb(_clear)(_cx_self* self) {
}
STC_INLINE void _cx_memb(_drop)(_cx_self* self)
- { _cx_memb(_clear)(self); c_FREE(self->data); }
+ { _cx_memb(_clear)(self); c_free(self->data); }
STC_INLINE size_t _cx_memb(_size)(const _cx_self* q)
{ return q->_len; }