summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cstack.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-09-10 19:01:45 +0200
committerTyge Løvset <[email protected]>2021-09-10 19:01:45 +0200
commitad4c5377cf7e2f5812e2053e51550239fcd38d45 (patch)
treebb74419144b0326ec58458650b557e5b243ae27b /include/stc/cstack.h
parent2dcac231b5eea841f7bc607f0ddbc729bc41a9e5 (diff)
downloadSTC-modified-ad4c5377cf7e2f5812e2053e51550239fcd38d45.tar.gz
STC-modified-ad4c5377cf7e2f5812e2053e51550239fcd38d45.zip
Added support for cqueue.h Added test.
Diffstat (limited to 'include/stc/cstack.h')
-rw-r--r--include/stc/cstack.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stc/cstack.h b/include/stc/cstack.h
index ea116be2..c0d89c78 100644
--- a/include/stc/cstack.h
+++ b/include/stc/cstack.h
@@ -95,7 +95,7 @@ STC_INLINE cx_iter_t cx_memb(_begin)(const Self* self)
STC_INLINE cx_iter_t cx_memb(_end)(const Self* self)
{ return c_make(cx_iter_t){self->data + self->size}; }
STC_INLINE void cx_memb(_next)(cx_iter_t* it) { ++it->ref; }
-STC_INLINE cx_iter_t cx_memb(_advance)(cx_iter_t it, intptr_t offs)
+STC_INLINE cx_iter_t cx_memb(_advance)(cx_iter_t it, intptr_t offs)
{ it.ref += offs; return it; }
#include "template.h"