[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Sun Mar 25 00:52:30 UTC 2018


 src/hb-private.hh |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

New commits:
commit ebccd019749e24e6c045518ee1ffbfc947744204
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Sat Mar 24 17:51:55 2018 -0700

    More ULL fixes
    
    Fixes https://github.com/harfbuzz/harfbuzz/issues/901

diff --git a/src/hb-private.hh b/src/hb-private.hh
index e34e5c78..d0f997d6 100644
--- a/src/hb-private.hh
+++ b/src/hb-private.hh
@@ -489,12 +489,12 @@ _hb_ctz (T v)
     unsigned int c = 64;
     v &= - (int64_t) (v);
     if (v) c--;
-    if (v & 0x00000000FFFFFFFF) c -= 32;
-    if (v & 0x0000FFFF0000FFFF) c -= 16;
-    if (v & 0x00FF00FF00FF00FF) c -= 8;
-    if (v & 0x0F0F0F0F0F0F0F0F) c -= 4;
-    if (v & 0x3333333333333333) c -= 2;
-    if (v & 0x5555555555555555) c -= 1;
+    if (v & 0x00000000FFFFFFFFULL) c -= 32;
+    if (v & 0x0000FFFF0000FFFFULL) c -= 16;
+    if (v & 0x00FF00FF00FF00FFULL) c -= 8;
+    if (v & 0x0F0F0F0F0F0F0F0FULL) c -= 4;
+    if (v & 0x3333333333333333ULL) c -= 2;
+    if (v & 0x5555555555555555ULL) c -= 1;
     return c;
   }
   if (sizeof (T) == 16)


More information about the HarfBuzz mailing list