From 6a91a2eb04951f6e33706c2b8e9cd987b429fce9 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 16 Feb 2018 17:49:41 -0800 Subject: [PATCH] Fix wide bitops implemenetation --- src/hb-private.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-private.hh b/src/hb-private.hh index a8bc5ed10..c9e5a5ca3 100644 --- a/src/hb-private.hh +++ b/src/hb-private.hh @@ -374,10 +374,10 @@ _hb_bit_storage (T v) return sizeof (unsigned int) * 8 - __builtin_clz (v); if (sizeof (T) <= sizeof (unsigned long)) - return sizeof (unsigned int) * 8 - __builtin_clzl (v); + return sizeof (unsigned long) * 8 - __builtin_clzl (v); if (sizeof (T) <= sizeof (unsigned long long)) - return sizeof (unsigned int) * 8 - __builtin_clzll (v); + return sizeof (unsigned long long) * 8 - __builtin_clzll (v); #endif #if defined(_MSC_VER) || defined(__MINGW32__)