summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cstack.h
diff options
context:
space:
mode:
authorTyge Lovset <[email protected]>2023-05-21 23:30:25 +0200
committerTyge Lovset <[email protected]>2023-05-21 23:30:25 +0200
commit0b34cadda2bc4da1cb0904989c8a5f2fe0236358 (patch)
tree038335539ecd9363fbfc70a850a340b291a10888 /include/stc/cstack.h
parent56b0884044610861866a1a27fb64276411604986 (diff)
downloadSTC-modified-0b34cadda2bc4da1cb0904989c8a5f2fe0236358.tar.gz
STC-modified-0b34cadda2bc4da1cb0904989c8a5f2fe0236358.zip
NB! Made cstr.h header-only by default. Now requires #define i_static, i_implement or i_extern (includes utf8code.c) to implement non-inline functions (or link with libstc).
Diffstat (limited to 'include/stc/cstack.h')
-rw-r--r--include/stc/cstack.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/stc/cstack.h b/include/stc/cstack.h
index eb6ccb58..ae8b3c40 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 ? self->data : NULL,
- self->data + self->_len};
+ return c_LITERAL(_cx_iter){self->_len ? (_cx_value*)self->data : NULL,
+ (_cx_value*)self->data + self->_len};
}
STC_INLINE _cx_iter _cx_memb(_end)(const _cx_self* self)
- { return c_LITERAL(_cx_iter){NULL, self->data + self->_len}; }
+ { return c_LITERAL(_cx_iter){NULL, (_cx_value*)self->data + self->_len}; }
STC_INLINE void _cx_memb(_next)(_cx_iter* it)
{ if (++it->ref == it->end) it->ref = NULL; }