Fix u128 constructors (MSVC)

This commit is contained in:
Nekotekina 2020-12-12 09:40:07 +03:00
parent 33c3977036
commit cb19316a17
2 changed files with 13 additions and 17 deletions

View file

@ -3,5 +3,8 @@
static_assert(std::endian::native == std::endian::little || std::endian::native == std::endian::big);
CHECK_SIZE_ALIGN(u128, 16, 16);
CHECK_SIZE_ALIGN(s128, 16, 16);
static_assert(be_t<u16>(1) + be_t<u32>(2) + be_t<u64>(3) == 6);
static_assert(le_t<u16>(1) + le_t<u32>(2) + le_t<u64>(3) == 6);