From 5d07f4f726de562778ab358d4bdf4fe8bae517bb Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Tue, 30 Oct 2018 07:00:34 +0100 Subject: bitset: fix warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reported by Hans Ã…berg. http://lists.gnu.org/archive/html/bug-bison/2018-10/msg00047.html * lib/bitset.c (bitset_count_): here. --- lib/bitset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/bitset.c b/lib/bitset.c index f8249b8c..32521377 100644 --- a/lib/bitset.c +++ b/lib/bitset.c @@ -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; } -- cgit v1.2.1