We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0431012 commit 018da9eCopy full SHA for 018da9e
sparsepp/spp_bitset.h
@@ -35,7 +35,7 @@ static inline uint32_t s_spp_popcount_default(uint64_t x) SPP_NOEXCEPT
35
static inline uint32_t count_trailing_zeroes(size_t v) SPP_NOEXCEPT
36
{
37
size_t x = (v & -v) - 1;
38
- return s_spp_popcount_default(x);
+ return sizeof(size_t) == 8 ? s_spp_popcount_default((uint64_t)x) : s_spp_popcount_default((uint32_t)x);
39
}
40
41
static inline uint32_t count_trailing_zeroes_naive(size_t v) SPP_NOEXCEPT
0 commit comments