From 715a02ba8155de2f7d446e8d7d2ae305c27996b9 Mon Sep 17 00:00:00 2001 From: tylov Date: Wed, 12 Jul 2023 15:19:45 +0200 Subject: Fixed usage of `const i_key` in cvec API, should be `const _cx_value`. Removed cvec_insert(), use cvec_insert_n(). --- include/stc/cvec.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'include') diff --git a/include/stc/cvec.h b/include/stc/cvec.h index 6806e2bc..e1d34365 100644 --- a/include/stc/cvec.h +++ b/include/stc/cvec.h @@ -167,11 +167,7 @@ _cx_MEMB(_insert_n)(_cx_Self* self, const intptr_t idx, const _cx_value arr[], c return it; } STC_INLINE _cx_iter -_cx_MEMB(_insert)(_cx_Self* self, const intptr_t idx, const i_key value) { - return _cx_MEMB(_insert_n)(self, idx, &value, 1); -} -STC_INLINE _cx_iter -_cx_MEMB(_insert_at)(_cx_Self* self, _cx_iter it, const i_key value) { +_cx_MEMB(_insert_at)(_cx_Self* self, _cx_iter it, const _cx_value value) { return _cx_MEMB(_insert_n)(self, _it_ptr(it) - self->data, &value, 1); } -- cgit v1.2.3