diff --git a/src/lib/utils/bitvector.h b/src/lib/utils/bitvector.h index 1c906742fe5..30813dd70e6 100644 --- a/src/lib/utils/bitvector.h +++ b/src/lib/utils/bitvector.h @@ -435,7 +435,7 @@ class bitvector_base final { */ bitvector_base& set() { full_range_operation( - [](std::unsigned_integral auto block) -> decltype(block) { return static_cast(~0U); }, + [](std::unsigned_integral auto block) -> decltype(block) { return static_cast(~0); }, *this); zero_unused_bits(); return *this; @@ -456,7 +456,7 @@ class bitvector_base final { */ bitvector_base& unset() { full_range_operation( - [](std::unsigned_integral auto block) -> decltype(block) { return static_cast(0U); }, + [](std::unsigned_integral auto block) -> decltype(block) { return static_cast(0); }, *this); return *this; }