diff --git a/Utilities/BitField.h b/Utilities/BitField.h index 39f5a5b380..c2903a0c5d 100644 --- a/Utilities/BitField.h +++ b/Utilities/BitField.h @@ -1,7 +1,6 @@ -#pragma once +#pragma once #include "types.h" -#include template struct bf_base @@ -17,7 +16,7 @@ struct bf_base static constexpr uint bitsize = N; // All ones mask - static constexpr utype mask1 = std::numeric_limits::max(); + static constexpr utype mask1 = static_cast(UINTMAX_MAX); // Value mask static constexpr utype vmask = mask1 >> (bitmax - bitsize);