bitset: fix warning

Reported by Hans Åberg.
http://lists.gnu.org/archive/html/bug-bison/2018-10/msg00047.html

* lib/bitset.c (bitset_count_): here.
This commit is contained in:
Akim Demaille
2018-10-30 07:00:34 +01:00
parent e605ad9679
commit 5d07f4f726

View File

@@ -353,7 +353,7 @@ bitset_count_ (bitset src)
{
bitset_bindex next = 0;
bitset_bindex num;
while (num = bitset_list (src, list, BITSET_LIST_SIZE, &next))
while ((num = bitset_list (src, list, BITSET_LIST_SIZE, &next)))
count += num;
}