diff options
| author | tylov <[email protected]> | 2023-07-12 15:19:45 +0200 |
|---|---|---|
| committer | tylov <[email protected]> | 2023-07-12 15:19:45 +0200 |
| commit | 715a02ba8155de2f7d446e8d7d2ae305c27996b9 (patch) | |
| tree | eddc758c57d1c521e50ece51e42eb7bbc2e9d2ea /include | |
| parent | 50cbc73d4fef3ce91d094b80a018769eac439965 (diff) | |
| download | STC-modified-715a02ba8155de2f7d446e8d7d2ae305c27996b9.tar.gz STC-modified-715a02ba8155de2f7d446e8d7d2ae305c27996b9.zip | |
Fixed usage of `const i_key` in cvec API, should be `const _cx_value`. Removed cvec_insert(), use cvec_insert_n().
Diffstat (limited to 'include')
| -rw-r--r-- | include/stc/cvec.h | 6 |
1 files changed, 1 insertions, 5 deletions
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); } |
