diff options
| author | Tyge Løvset <[email protected]> | 2023-05-20 00:40:54 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-05-20 00:40:54 +0200 |
| commit | bb59d9c87f8d99f50c439351480c0ec8d6eea38e (patch) | |
| tree | c8e273e7a63332ca37a5a15e9c81e534b8af7e44 /include/stc/cstack.h | |
| parent | 26513bb1352ab4e4ffe931aabd80868216afc551 (diff) | |
| download | STC-modified-bb59d9c87f8d99f50c439351480c0ec8d6eea38e.tar.gz STC-modified-bb59d9c87f8d99f50c439351480c0ec8d6eea38e.zip | |
Rename c_make() macro to c_init(). c_make still available, but deprecated.
Diffstat (limited to 'include/stc/cstack.h')
| -rw-r--r-- | include/stc/cstack.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/stc/cstack.h b/include/stc/cstack.h index bee7d17b..eb6ccb58 100644 --- a/include/stc/cstack.h +++ b/include/stc/cstack.h @@ -175,12 +175,12 @@ STC_INLINE i_keyraw _cx_memb(_value_toraw)(const _cx_value* val) #endif // !i_no_clone STC_INLINE _cx_iter _cx_memb(_begin)(const _cx_self* self) { - return c_LITERAL(_cx_iter){self->_len ? (_cx_value*)self->data : NULL, - (_cx_value*)self->data + self->_len}; + return c_LITERAL(_cx_iter){self->_len ? self->data : NULL, + self->data + self->_len}; } STC_INLINE _cx_iter _cx_memb(_end)(const _cx_self* self) - { return c_LITERAL(_cx_iter){NULL, (_cx_value*)self->data + self->_len}; } + { return c_LITERAL(_cx_iter){NULL, self->data + self->_len}; } STC_INLINE void _cx_memb(_next)(_cx_iter* it) { if (++it->ref == it->end) it->ref = NULL; } |
