From 3ee15a60358f4d894bbf2431d7a7df38b7acc4ce Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 22 Oct 2017 17:03:36 -0400 Subject: [PATCH] Another try at fixing mingw32 build bot fail --- src/hb-private.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hb-private.hh b/src/hb-private.hh index 333199a..3d617e2 100644 --- a/src/hb-private.hh +++ b/src/hb-private.hh @@ -337,10 +337,10 @@ static inline HB_CONST_FUNC unsigned int _hb_popcount64 (uint64_t mask) { #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) - return __builtin_popcountl (mask); -#else - return _hb_popcount32 (mask) + _hb_popcount32 (mask >> 32); + if (sizeof (long) >= sizeof (mask)) + return __builtin_popcountl (mask); #endif + return _hb_popcount32 (mask) + _hb_popcount32 (mask >> 32); } template static inline unsigned int _hb_popcount (T mask); template <> inline unsigned int _hb_popcount (uint32_t mask) { return _hb_popcount32 (mask); } -- 2.7.4