From 0218e964b0d73340c8d0c5d9e37991359d7c4be9 Mon Sep 17 00:00:00 2001 From: default Date: Fri, 30 Aug 2024 19:10:26 +0200 Subject: Backport from xs. --- xs_set.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'xs_set.h') 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); } -- cgit v1.2.3