mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-03-14 17:56:27 +00:00
mcl: Fix bug in non-template mcl::bit::ones
This commit is contained in:
2
externals/mcl/include/mcl/bit/bit_field.hpp
vendored
2
externals/mcl/include/mcl/bit/bit_field.hpp
vendored
@@ -31,7 +31,7 @@ constexpr T ones(size_t count) {
|
||||
if (count == 0) {
|
||||
return 0;
|
||||
}
|
||||
return ~static_cast<T>(0) >> (bitsizeof<T> - count);
|
||||
return static_cast<T>(~static_cast<T>(0)) >> (bitsizeof<T> - count);
|
||||
}
|
||||
|
||||
/// Create a mask of type T for bits [begin_bit, end_bit] inclusive.
|
||||
|
||||
Reference in New Issue
Block a user