From 839efba934c8623f2dea31e7f8bb2857624c6908 Mon Sep 17 00:00:00 2001 From: Tyge Lovset Date: Mon, 11 Jul 2022 23:53:06 +0200 Subject: Fixed documentation changes for size, capacity, empty. Minor changes in some ex. and map shootout. --- include/stc/clist.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') 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; } -- cgit v1.2.3