1
0
Fork 0
forked from suyu/suyu

Merge pull request #6818 from Morph1984/hex-util-bug

hex_util: Fix incorrect array size in AsArray
This commit is contained in:
Mai M 2021-08-04 23:31:04 -04:00 committed by GitHub
commit 9a7d2e3659
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,7 +61,7 @@ template <typename ContiguousContainer>
return out;
}
[[nodiscard]] constexpr std::array<u8, 16> AsArray(const char (&data)[17]) {
[[nodiscard]] constexpr std::array<u8, 16> AsArray(const char (&data)[33]) {
return HexStringToArray<16>(data);
}