[HarfBuzz] harfbuzz: Branch 'bitops'

Behdad Esfahbod behdad at kemper.freedesktop.org
Sat Feb 17 02:29:20 UTC 2018


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

New commits:
commit cd11107bb44ac719709e10264e9e6ba6a1cfae0c
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Fri Feb 16 18:28:58 2018 -0800

    Another bitops fallback fix
    
    I'm confident that all bugs are hashed out now.

diff --git a/src/hb-private.hh b/src/hb-private.hh
index 8461f641..583b5615 100644
--- a/src/hb-private.hh
+++ b/src/hb-private.hh
@@ -474,7 +474,7 @@ _hb_ctz (T v)
   {
     /* "bithacks" */
     unsigned int c = 32;
-    v &= -signed(v);
+    v &= - (int32_t) v;
     if (v) c--;
     if (v & 0x0000FFFF) c -= 16;
     if (v & 0x00FF00FF) c -= 8;
@@ -487,7 +487,7 @@ _hb_ctz (T v)
   {
     /* "bithacks" */
     unsigned int c = 64;
-    v &= -signed(v);
+    v &= - (int64_t) (v);
     if (v) c--;
     if (v & 0x00000000FFFFFFFF) c -= 32;
     if (v & 0x0000FFFF0000FFFF) c -= 16;


More information about the HarfBuzz mailing list