diff options
Diffstat (limited to 'include')
| -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; } |
