From dbbf40120513396eaa4c8783d0741d2528ed2971 Mon Sep 17 00:00:00 2001 From: Joel Linn Date: Sat, 22 Jan 2022 20:53:18 +0100 Subject: [PATCH] [Base] Align test memory --- src/xenia/base/testing/memory_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xenia/base/testing/memory_test.cc b/src/xenia/base/testing/memory_test.cc index 0594b53d9..3f3c1f963 100644 --- a/src/xenia/base/testing/memory_test.cc +++ b/src/xenia/base/testing/memory_test.cc @@ -455,8 +455,8 @@ TEST_CASE("copy_and_swap_64_unaligned", "[copy_and_swap]") { TEST_CASE("copy_and_swap_16_in_32_aligned", "[copy_and_swap]") { constexpr size_t count = 17; - std::array src{}; - std::array dst{}; + alignas(16) std::array src{}; + alignas(16) std::array dst{}; // Check alignment (if this fails, adjust allocation) REQUIRE((reinterpret_cast(src.data()) & 0xF) == 0);