We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5df3c66 commit c5bbc1eCopy full SHA for c5bbc1e
1 file changed
include/slimcpplib/long_math.h
@@ -317,7 +317,7 @@ constexpr type_t popcnt_impl(type_t value) noexcept
317
template<typename type_t, std::enable_if_t<is_unsigned_v<type_t>, int>>
318
constexpr uint_t popcnt(type_t value) noexcept
319
{
320
- return popcnt_impl<type_t>(value) & ((bit_count_v<type_t> << 2) - 1);
+ return static_cast<uint_t>(popcnt_impl<type_t>(value) & ((bit_count_v<type_t> << 2) - 1));
321
}
322
323
0 commit comments