[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Tue Jul 10 14:34:54 UTC 2018


 src/hb-dsalgs.hh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 718dfd4189275b1e4233dc7c12ab457352fccfcb
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Tue Jul 10 16:34:31 2018 +0200

    Fix shift

diff --git a/src/hb-dsalgs.hh b/src/hb-dsalgs.hh
index 4d3db966..6a8ddaa9 100644
--- a/src/hb-dsalgs.hh
+++ b/src/hb-dsalgs.hh
@@ -220,7 +220,7 @@ hb_ctz (T v)
   {
     unsigned int shift = 64;
     return (uint64_t) v ? hb_bit_storage<uint64_t> ((uint64_t) v) :
-			  hb_bit_storage<uint64_t> ((uint64_t) v >> shift) + shift;
+			  hb_bit_storage<uint64_t> ((uint64_t) (v >> shift)) + shift;
   }
 
   assert (0);


More information about the HarfBuzz mailing list