summaryrefslogtreecommitdiffhomepage
path: root/include/stc/csmap.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-01-27 15:09:59 +0100
committerTyge Løvset <[email protected]>2023-01-27 15:09:59 +0100
commit8c81c9642b5f7564f06654562d929703f2d2dd0a (patch)
tree05a33a34d339dad8fc5a909443b6c616cb5b800d /include/stc/csmap.h
parent5c1b1616f5a20a54c32e57b0bea49f366441356b (diff)
downloadSTC-modified-8c81c9642b5f7564f06654562d929703f2d2dd0a.tar.gz
STC-modified-8c81c9642b5f7564f06654562d929703f2d2dd0a.zip
(Reverted) c_COMPOUND() to c_LITERAL().
Diffstat (limited to 'include/stc/csmap.h')
-rw-r--r--include/stc/csmap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stc/csmap.h b/include/stc/csmap.h
index 67b2265e..fba08eba 100644
--- a/include/stc/csmap.h
+++ b/include/stc/csmap.h
@@ -143,7 +143,7 @@ _cx_memb(_clear)(_cx_self* self)
STC_INLINE _cx_raw
_cx_memb(_value_toraw)(const _cx_value* val) {
return _i_SET_ONLY( i_keyto(val) )
- _i_MAP_ONLY( c_COMPOUND(_cx_raw){i_keyto((&val->first)),
+ _i_MAP_ONLY( c_LITERAL(_cx_raw){i_keyto((&val->first)),
i_valto((&val->second))} );
}
@@ -231,7 +231,7 @@ _cx_memb(_reserve)(_cx_self* self, const size_t cap) {
_cx_node* nodes = (_cx_node*)c_REALLOC(self->nodes, (cap + 1)*sizeof(_cx_node));
if (!nodes)
return false;
- nodes[0] = c_COMPOUND(_cx_node){{0, 0}, 0};
+ nodes[0] = c_LITERAL(_cx_node){{0, 0}, 0};
self->nodes = nodes;
self->cap = (i_size)cap;
return true;