diff options
| author | Paul Eggert | 2014-01-24 12:55:22 -0800 |
|---|---|---|
| committer | Paul Eggert | 2014-01-24 12:55:22 -0800 |
| commit | 0fadc0b0ae30c97b9c810476f3c96ed5ce25a1f9 (patch) | |
| tree | fba1a7ae71c4278a234adad3de083eba249583a0 /src/data.c | |
| parent | 1c597a5e2fbc8a15d8b0142c529be087f007db9c (diff) | |
| download | emacs-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/data.c')
| -rw-r--r-- | src/data.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 | } |