summaryrefslogtreecommitdiffhomepage
path: root/stc/cflist.h
diff options
context:
space:
mode:
Diffstat (limited to 'stc/cflist.h')
-rw-r--r--stc/cflist.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/stc/cflist.h b/stc/cflist.h
index bf921c36..d35ccea4 100644
--- a/stc/cflist.h
+++ b/stc/cflist.h
@@ -143,16 +143,15 @@
static inline cflist_##tag##_iter_t \
cflist_##tag##_begin(CFList_##tag* lst) { \
CFListNode_##tag *head = lst->last ? lst->last->next : NULL; \
- return (cflist_##tag##_iter_t) {head, &lst->last}; \
+ cflist_##tag##_iter_t it = {head, &lst->last}; return it; \
} \
static inline cflist_##tag##_iter_t \
cflist_##tag##_next(cflist_##tag##_iter_t it) { \
- it.item = it.item == *it._last ? NULL : it.item->next; \
- return it; \
+ it.item = it.item == *it._last ? NULL : it.item->next; return it; \
} \
static inline cflist_##tag##_iter_t \
cflist_##tag##_last(CFList_##tag* lst) { \
- return (cflist_##tag##_iter_t) {lst->last, &lst->last}; \
+ cflist_##tag##_iter_t it = {lst->last, &lst->last}; return it; \
} \
\
implement_CFList_6(tag, Value, valueDestroy, valueCompare, ValueRaw, valueGetRaw) \