emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r116147: Fix bool-vector-count-population bug on Min


From: Paul Eggert
Subject: [Emacs-diffs] trunk r116147: Fix bool-vector-count-population bug on MinGW64.
Date: Fri, 24 Jan 2014 20:55:26 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 116147
revision-id: address@hidden
parent: address@hidden
fixes bug: http://debbugs.gnu.org/16535
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Fri 2014-01-24 12:55:22 -0800
message:
  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.
modified:
  src/ChangeLog                  changelog-20091113204419-o5vbwnq5f7feedwu-1438
  src/data.c                     data.c-20091113204419-o5vbwnq5f7feedwu-251
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2014-01-24 03:53:16 +0000
+++ b/src/ChangeLog     2014-01-24 20:55:22 +0000
@@ -1,3 +1,9 @@
+2014-01-24  Paul Eggert  <address@hidden>
+
+       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  <address@hidden>
 
        * xdisp.c (reseat_1, Fcurrent_bidi_paragraph_direction): Avoid

=== modified file 'src/data.c'
--- a/src/data.c        2014-01-03 06:47:27 +0000
+++ b/src/data.c        2014-01-24 20:55:22 +0000
@@ -3012,7 +3012,7 @@
     {
       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;
     }


reply via email to

[Prev in Thread] Current Thread [Next in Thread]