Skip to content

Commit 018da9e

Browse files
committed
fix macos build issue
1 parent 0431012 commit 018da9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sparsepp/spp_bitset.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ static inline uint32_t s_spp_popcount_default(uint64_t x) SPP_NOEXCEPT
3535
static inline uint32_t count_trailing_zeroes(size_t v) SPP_NOEXCEPT
3636
{
3737
size_t x = (v & -v) - 1;
38-
return s_spp_popcount_default(x);
38+
return sizeof(size_t) == 8 ? s_spp_popcount_default((uint64_t)x) : s_spp_popcount_default((uint32_t)x);
3939
}
4040

4141
static inline uint32_t count_trailing_zeroes_naive(size_t v) SPP_NOEXCEPT

0 commit comments

Comments
 (0)