summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2016-02-24 22:01:47 (GMT)
committerJason Evans <jasone@canonware.com>2016-02-24 22:01:47 (GMT)
commitaa63d5d377b4508b83502e923690d1d7b67c8c88 (patch)
tree597e1edc53d7d3f74a9e3669ca6d7169d6281c24
parentca8fffb5c13b6a7c45fd034667a8910c61d09c3b (diff)
downloadjemalloc-aa63d5d377b4508b83502e923690d1d7b67c8c88.zip
jemalloc-aa63d5d377b4508b83502e923690d1d7b67c8c88.tar.gz
jemalloc-aa63d5d377b4508b83502e923690d1d7b67c8c88.tar.bz2
Fix ffs_zu() compilation error on MinGW.
This regression was caused by 9f4ee6034c3ac6a8c8b5f9a0d76822fb2fd90c41 (Refactor jemalloc_ffs*() into ffs_*().).
-rw-r--r--include/jemalloc/internal/util.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/jemalloc/internal/util.h b/include/jemalloc/internal/util.h
index 031f804..b8885bf 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