From 18c25b23857fe232b05c46e3c3df12bde833331c Mon Sep 17 00:00:00 2001 From: cobalt2727 <60624944+cobalt2727@users.noreply.github.com> Date: Sun, 19 Nov 2023 19:08:56 -0600 Subject: [PATCH] fix: aarch64 builds (#10) --- Source/Core/Core/HW/EXI/EXI_DeviceSlippi.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/HW/EXI/EXI_DeviceSlippi.cpp b/Source/Core/Core/HW/EXI/EXI_DeviceSlippi.cpp index 842e94bc4a..7e2fcbe514 100644 --- a/Source/Core/Core/HW/EXI/EXI_DeviceSlippi.cpp +++ b/Source/Core/Core/HW/EXI/EXI_DeviceSlippi.cpp @@ -113,10 +113,10 @@ void appendHalfToBuffer(std::vector* buf, u16 word) std::string ConvertConnectCodeForGame(const std::string& input) { // Shift-Jis '#' symbol is two bytes (0x8194), followed by 0x00 null terminator - char full_width_shift_jis_hashtag[] = {-127, -108, 0}; // 0x81, 0x94, 0x00 + signed char full_width_shift_jis_hashtag[] = {-127, -108, 0}; // 0x81, 0x94, 0x00 std::string connect_code(input); // SLIPPITODO:Not the best use of ReplaceAll. potential bug if more than one '#' found. - connect_code = ReplaceAll(connect_code, "#", std::string(full_width_shift_jis_hashtag)); + connect_code = ReplaceAll(connect_code, "#", std::string(reinterpret_cast(full_width_shift_jis_hashtag))); // fixed length + full width (two byte) hashtag +1, null terminator +1 connect_code.resize(CONNECT_CODE_LENGTH + 2); return connect_code;