* lib/bitset/array.c (abitset_small_list): Always update *next and
return a value.
+2020-11-19 Akim Demaille <akim@lrde.epita.fr>
+
+ bitset: be sure to always return a value
+ * lib/bitset/array.c (abitset_small_list): Always update *next and
+ return a value.
+
2020-11-19 Siddhesh Poyarekar <siddhesh@gotplt.org>
vcs-to-changelog: Expect spaces in file names
bitset_bindex count = 0;
/* Is there enough room to avoid checking in each iteration? */
if (num >= BITSET_WORD_BITS)
- {
- BITSET_FOR_EACH_BIT (pos, word)
- list[count++] = bitno + pos;
- *next = bitno + BITSET_WORD_BITS;
- return count;
- }
+ BITSET_FOR_EACH_BIT (pos, word)
+ list[count++] = bitno + pos;
else
BITSET_FOR_EACH_BIT (pos, word)
{
return count;
}
}
+ *next = bitno + BITSET_WORD_BITS;
+ return count;
}