From 4d09eecb0d5f3952792c60d85560a9fed6a4e33e Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Mon, 30 Oct 2023 01:20:21 -0500 Subject: [PATCH] [ox/std] Fix Linux-AArch64 build --- deps/ox/src/ox/std/test/tests.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deps/ox/src/ox/std/test/tests.cpp b/deps/ox/src/ox/std/test/tests.cpp index 3c81933f..815d66cc 100644 --- a/deps/ox/src/ox/std/test/tests.cpp +++ b/deps/ox/src/ox/std/test/tests.cpp @@ -153,7 +153,8 @@ static std::map tests = { oxExpect(ox::serialize(4).unwrap(), BA({4, 0, 0, 0})); oxExpect(ox::serialize(256).unwrap(), BA({0, 1, 0, 0})); oxExpect(ox::serialize(257).unwrap(), BA({1, 1, 0, 0})); - oxExpect(ox::serialize(0xffff'ffff).unwrap(), BA({-1, -1, -1, -1})); + constexpr auto neg1 = static_cast(-1); // ARM64 Linux assumes -1 literals are ints... + oxExpect(ox::serialize(0xffff'ffff).unwrap(), BA({neg1, neg1, neg1, neg1})); return OxError(0); } },