From aa63d5d377b4508b83502e923690d1d7b67c8c88 Mon Sep 17 00:00:00 2001 From: Jason Evans Date: Wed, 24 Feb 2016 14:01:47 -0800 Subject: [PATCH] Fix ffs_zu() compilation error on MinGW. This regression was caused by 9f4ee6034c3ac6a8c8b5f9a0d76822fb2fd90c41 (Refactor jemalloc_ffs*() into ffs_*().). --- include/jemalloc/internal/util.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/jemalloc/internal/util.h b/include/jemalloc/internal/util.h index 031f8045..b8885bfa 100644 --- a/include/jemalloc/internal/util.h +++ b/include/jemalloc/internal/util.h @@ -168,10 +168,12 @@ JEMALLOC_ALWAYS_INLINE unsigned ffs_zu(size_t bitmap) { -#if LG_SIZEOF_PTR == LG_SIZEOF_LONG - return (ffs_lu(bitmap)); -#elif LG_SIZEOF_PTR == LG_SIZEOF_INT +#if LG_SIZEOF_PTR == LG_SIZEOF_INT return (ffs_u(bitmap)); +#elif LG_SIZEOF_PTR == LG_SIZEOF_LONG + return (ffs_lu(bitmap)); +#elif LG_SIZEOF_PTR == LG_SIZEOF_LONG_LONG + return (ffs_llu(bitmap)); #else #error No implementation for size_t ffs() #endif