diff --git a/src/primitives/block.h b/src/primitives/block.h index 3ee843f8f9..1fcb2ee853 100644 --- a/src/primitives/block.h +++ b/src/primitives/block.h @@ -133,10 +133,10 @@ private: static constexpr std::byte to_byte(const Flag flag) { - return std::byte{flag}; + return static_cast(flag); } - static constexpr std::byte VERSION_BIT_MASK = std::byte{Flag::VERSION_BIT_0} | std::byte{Flag::VERSION_BIT_1} | std::byte{Flag::VERSION_BIT_2}; + static constexpr std::byte VERSION_BIT_MASK = static_cast(Flag::VERSION_BIT_0) | static_cast(Flag::VERSION_BIT_1) | static_cast(Flag::VERSION_BIT_2); }; struct CompressibleBlockHeader : CBlockHeader {