[ox/std] Fix Linux-AArch64 build
This commit is contained in:
parent
66d7627ed8
commit
4d09eecb0d
3
deps/ox/src/ox/std/test/tests.cpp
vendored
3
deps/ox/src/ox/std/test/tests.cpp
vendored
@ -153,7 +153,8 @@ static std::map<ox::String, ox::Error(*)()> tests = {
|
||||
oxExpect(ox::serialize<uint32_t>(4).unwrap(), BA({4, 0, 0, 0}));
|
||||
oxExpect(ox::serialize<uint32_t>(256).unwrap(), BA({0, 1, 0, 0}));
|
||||
oxExpect(ox::serialize<uint32_t>(257).unwrap(), BA({1, 1, 0, 0}));
|
||||
oxExpect(ox::serialize<uint32_t>(0xffff'ffff).unwrap(), BA({-1, -1, -1, -1}));
|
||||
constexpr auto neg1 = static_cast<char>(-1); // ARM64 Linux assumes -1 literals are ints...
|
||||
oxExpect(ox::serialize<uint32_t>(0xffff'ffff).unwrap(), BA({neg1, neg1, neg1, neg1}));
|
||||
return OxError(0);
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user