aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2014-01-24 12:55:22 -0800
committerPaul Eggert2014-01-24 12:55:22 -0800
commit0fadc0b0ae30c97b9c810476f3c96ed5ce25a1f9 (patch)
treefba1a7ae71c4278a234adad3de083eba249583a0 /src
parent1c597a5e2fbc8a15d8b0142c529be087f007db9c (diff)
downloademacs-0fadc0b0ae30c97b9c810476f3c96ed5ce25a1f9.tar.gz
emacs-0fadc0b0ae30c97b9c810476f3c96ed5ce25a1f9.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/data.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 6dbaa5cbcf2..e1e9cba7640 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12014-01-24 Paul Eggert <eggert@cs.ucla.edu>
2
3 Fix bool-vector-count-population bug on MinGW64 (Bug#16535).
4 * data.c (count_one_bits_word): Fix bug (negated comparison)
5 when BITS_PER_ULL < BITS_PER_BITS_WORD.
6
12014-01-24 Dmitry Antipov <dmantipov@yandex.ru> 72014-01-24 Dmitry Antipov <dmantipov@yandex.ru>
2 8
3 * xdisp.c (reseat_1, Fcurrent_bidi_paragraph_direction): Avoid 9 * xdisp.c (reseat_1, Fcurrent_bidi_paragraph_direction): Avoid
diff --git a/src/data.c b/src/data.c
index 1741f908396..2a64c1bbf82 100644
--- a/src/data.c
+++ b/src/data.c
@@ -3012,7 +3012,7 @@ count_one_bits_word (bits_word w)
3012 { 3012 {
3013 int i = 0, count = 0; 3013 int i = 0, count = 0;
3014 while (count += count_one_bits_ll (w), 3014 while (count += count_one_bits_ll (w),
3015 BITS_PER_BITS_WORD <= (i += BITS_PER_ULL)) 3015 (i += BITS_PER_ULL) < BITS_PER_BITS_WORD)
3016 w = shift_right_ull (w); 3016 w = shift_right_ull (w);
3017 return count; 3017 return count;
3018 } 3018 }