summaryrefslogtreecommitdiffhomepage
path: root/examples/sso_map.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-05-24 11:32:12 +0200
committerTyge Løvset <[email protected]>2022-05-24 11:32:12 +0200
commit966100106830f990bc3e1b40a5b5c39b64d5e9b0 (patch)
tree3704a5317fedd54f86a95163c6f498c27f6f209f /examples/sso_map.c
parent99bfc38c2517f1ee20db3d9553be177ae6c960c6 (diff)
downloadSTC-modified-966100106830f990bc3e1b40a5b5c39b64d5e9b0.tar.gz
STC-modified-966100106830f990bc3e1b40a5b5c39b64d5e9b0.zip
Changed c_forpair(k, v, Map, map) so that k and v are pointers instead of values. This to make it consistent with c_foreach, c_apply, c_apply_arr.
Diffstat (limited to 'examples/sso_map.c')
-rw-r--r--examples/sso_map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/sso_map.c b/examples/sso_map.c
index d6174da8..bab182e3 100644
--- a/examples/sso_map.c
+++ b/examples/sso_map.c
@@ -12,7 +12,7 @@ int main()
c_forpair (k, v, cmap_str, m)
printf("%s: '%s' Len=%" PRIuMAX ", Is long: %s\n",
- cstr_str(&_.k), cstr_str(&_.v), cstr_size(_.v),
- cstr_is_long(&_.v)?"true":"false");
+ cstr_str(_.k), cstr_str(_.v), cstr_size(*_.v),
+ cstr_is_long(_.v)?"true":"false");
}
}