diff --git a/include/ada/checkers-inl.h b/include/ada/checkers-inl.h index b5c238440..afe962715 100644 --- a/include/ada/checkers-inl.h +++ b/include/ada/checkers-inl.h @@ -13,8 +13,7 @@ namespace ada::checkers { constexpr bool has_hex_prefix_unsafe(std::string_view input) { // This is actually efficient code, see has_hex_prefix for the assembly. constexpr bool is_little_endian = std::endian::native == std::endian::little; - constexpr auto word0x = - std::bit_cast(static_cast(0x7830)); + constexpr uint16_t word0x = 0x7830; uint16_t two_first_bytes = static_cast(input[0]) | static_cast((static_cast(input[1]) << 8));