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__)