Commit 0fadc0b0 authored by Paul Eggert's avatar Paul Eggert
Browse files

Fix bool-vector-count-population bug on MinGW64.

* data.c (count_one_bits_word): Fix bug (negated comparison)
when BITS_PER_ULL < BITS_PER_BITS_WORD.

Fixes: debbugs:16535
parent 1c597a5e
2014-01-24 Paul Eggert <eggert@cs.ucla.edu>
Fix bool-vector-count-population bug on MinGW64 (Bug#16535).
* data.c (count_one_bits_word): Fix bug (negated comparison)
when BITS_PER_ULL < BITS_PER_BITS_WORD.
2014-01-24 Dmitry Antipov <dmantipov@yandex.ru>
* xdisp.c (reseat_1, Fcurrent_bidi_paragraph_direction): Avoid
......
......@@ -3012,7 +3012,7 @@ count_one_bits_word (bits_word w)
{
int i = 0, count = 0;
while (count += count_one_bits_ll (w),
BITS_PER_BITS_WORD <= (i += BITS_PER_ULL))
(i += BITS_PER_ULL) < BITS_PER_BITS_WORD)
w = shift_right_ull (w);
return count;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment