diff options
| author | 2024-08-30 19:10:26 +0200 | |
|---|---|---|
| committer | 2024-08-30 19:10:26 +0200 | |
| commit | 0218e964b0d73340c8d0c5d9e37991359d7c4be9 (patch) | |
| tree | 9cfc1650abf8780be52dc219e37a311244a294e2 /xs_set.h | |
| parent | timeline_del() also deletes from the pinned and bookmark caches. (diff) | |
| download | penes-snac2-0218e964b0d73340c8d0c5d9e37991359d7c4be9.tar.gz penes-snac2-0218e964b0d73340c8d0c5d9e37991359d7c4be9.tar.xz penes-snac2-0218e964b0d73340c8d0c5d9e37991359d7c4be9.zip | |
Backport from xs.
Diffstat (limited to 'xs_set.h')
| -rw-r--r-- | xs_set.h | 3 |
1 files changed, 1 insertions, 2 deletions
| @@ -95,8 +95,7 @@ int xs_set_add(xs_set *s, const xs_val *data) | |||
| 95 | memset(s->hash, '\0', s->elems * sizeof(int)); | 95 | memset(s->hash, '\0', s->elems * sizeof(int)); |
| 96 | 96 | ||
| 97 | /* add the list elements back */ | 97 | /* add the list elements back */ |
| 98 | int ct = 0; | 98 | xs_list_foreach(s->list, v) |
| 99 | while (xs_list_next(s->list, &v, &ct)) | ||
| 100 | _store_hash(s, v, v - s->list); | 99 | _store_hash(s, v, v - s->list); |
| 101 | } | 100 | } |
| 102 | 101 | ||