summaryrefslogtreecommitdiff
path: root/xs_set.h
diff options
context:
space:
mode:
Diffstat (limited to 'xs_set.h')
-rw-r--r--xs_set.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/xs_set.h b/xs_set.h
index 6ab7f0b..94c2b84 100644
--- a/xs_set.h
+++ b/xs_set.h
@@ -95,8 +95,7 @@ int xs_set_add(xs_set *s, const xs_val *data)
memset(s->hash, '\0', s->elems * sizeof(int));
/* add the list elements back */
- int ct = 0;
- while (xs_list_next(s->list, &v, &ct))
+ xs_list_foreach(s->list, v)
_store_hash(s, v, v - s->list);
}