Skip to content

Commit db23629

Browse files
committed
Update BitOps.hpp
error: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Werror=sign-conversion]
1 parent 7e5cf6c commit db23629

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/open_viii/tools/BitOps.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static consteval retT
6868
* @note largest_bit_value is same as get_mask but it get_mask chooses the
6969
* return type.
7070
*/
71-
template<int bit_count>
71+
template<std::uint64_t bit_count>
7272
static constexpr auto get_mask = []() {
7373
static_assert(bit_count <= number_of_bits<std::uint64_t> && bit_count > 0);
7474
[[maybe_unused]] constexpr auto bit_count_8 = number_of_bits<std::uint8_t>;

0 commit comments

Comments
 (0)