* lib/bitset/table.c (tbitset_list): Update bitno when windex is.
+2020-11-17 Akim Demaille <akim@lrde.epita.fr>
+
+ bitset: fix iteration over table bitsets
+ * lib/bitset/table.c (tbitset_list): Update bitno when windex is.
+
2020-11-17 Akim Demaille <akim@lrde.epita.fr>
bitset: rename internal details for consistency
for (; eindex < size; eindex++)
{
- bitset_word *srcp;
tbitset_elt *elt = elts[eindex];
if (!elt)
continue;
- srcp = TBITSET_WORDS (elt);
+ bitset_word *srcp = TBITSET_WORDS (elt);
bitset_windex windex = eindex * TBITSET_ELT_WORDS;
+ bitno = windex * BITSET_WORD_BITS;
+ /* Is there enough room to avoid checking in each iteration? */
if ((count + TBITSET_ELT_BITS) < num)
{
/* The coast is clear, plant boot! */