diff options
| author | Tyge Lovset <[email protected]> | 2022-07-11 23:53:06 +0200 |
|---|---|---|
| committer | Tyge Lovset <[email protected]> | 2022-07-11 23:53:06 +0200 |
| commit | 839efba934c8623f2dea31e7f8bb2857624c6908 (patch) | |
| tree | 218e165ae2b65f6c2be41ea8169fb71432b4e68e /include/stc/clist.h | |
| parent | 5082397444550d9486783fe498629524a64d564e (diff) | |
| download | STC-modified-839efba934c8623f2dea31e7f8bb2857624c6908.tar.gz STC-modified-839efba934c8623f2dea31e7f8bb2857624c6908.zip | |
Fixed documentation changes for size, capacity, empty. Minor changes in some ex. and map shootout.
Diffstat (limited to 'include/stc/clist.h')
| -rw-r--r-- | include/stc/clist.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/stc/clist.h b/include/stc/clist.h index 0fbf01ae..229db32c 100644 --- a/include/stc/clist.h +++ b/include/stc/clist.h @@ -145,10 +145,10 @@ STC_INLINE _cx_value* _cx_memb(_front)(const _cx_self* self) { return &self->l STC_INLINE _cx_value* _cx_memb(_back)(const _cx_self* self) { return &self->last->value; } STC_INLINE size_t -_cx_memb(_count)(_cx_self cx) { - size_t n = 1; const _cx_node *node = cx.last; +_cx_memb(_count)(const _cx_self* self) { + size_t n = 1; const _cx_node *node = self->last; if (!node) return 0; - while ((node = node->next) != cx.last) ++n; + while ((node = node->next) != self->last) ++n; return n; } |
