summaryrefslogtreecommitdiff
path: root/xs_set.h
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-05-23 10:01:37 +0200
committerdefault <nobody@localhost>2024-05-23 10:01:37 +0200
commit8cf7559a7e21c5757455b948814d61e6e96f08f1 (patch)
treec9a9d6d637977f97ebfc83ba36ae794fe5f9d8c1 /xs_set.h
parent63e0ca5abac0f00121f724927c25edaf822097a9 (diff)
Added more const.
Diffstat (limited to 'xs_set.h')
-rw-r--r--xs_set.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/xs_set.h b/xs_set.h
index b7eb091..12bac94 100644
--- a/xs_set.h
+++ b/xs_set.h
@@ -85,7 +85,8 @@ int xs_set_add(xs_set *s, const xs_val *data)
{
/* is it 'full'? */
if (s->used >= s->elems / 2) {
- char *p, *v;
+ char *p;
+ const xs_val *v;
/* expand! */
s->elems *= 2;