Fix ffs_zu() compilation error on MinGW.

This regression was caused by 9f4ee6034c
(Refactor jemalloc_ffs*() into ffs_*().).
This commit is contained in:
Jason Evans 2016-02-24 14:01:47 -08:00
parent ca8fffb5c1
commit aa63d5d377

View File

@ -168,10 +168,12 @@ JEMALLOC_ALWAYS_INLINE unsigned
ffs_zu(size_t bitmap) ffs_zu(size_t bitmap)
{ {
#if LG_SIZEOF_PTR == LG_SIZEOF_LONG #if LG_SIZEOF_PTR == LG_SIZEOF_INT
return (ffs_lu(bitmap));
#elif LG_SIZEOF_PTR == LG_SIZEOF_INT
return (ffs_u(bitmap)); 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 #else
#error No implementation for size_t ffs() #error No implementation for size_t ffs()
#endif #endif