Skip to content

Commit e49169f

Browse files
authored
this looks too complicated! (#803)
1 parent 7b6ccf1 commit e49169f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/ada/checkers-inl.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ namespace ada::checkers {
1313
constexpr bool has_hex_prefix_unsafe(std::string_view input) {
1414
// This is actually efficient code, see has_hex_prefix for the assembly.
1515
constexpr bool is_little_endian = std::endian::native == std::endian::little;
16-
constexpr auto word0x =
17-
std::bit_cast<uint16_t>(static_cast<uint16_t>(0x7830));
16+
constexpr uint16_t word0x = 0x7830;
1817
uint16_t two_first_bytes =
1918
static_cast<uint16_t>(input[0]) |
2019
static_cast<uint16_t>((static_cast<uint16_t>(input[1]) << 8));

0 commit comments

Comments
 (0)