From c8c62fc07c8b4c90cb122baa2657f7c05a42d7af Mon Sep 17 00:00:00 2001 From: Xphalnos <164882787+Xphalnos@users.noreply.github.com> Date: Tue, 5 Nov 2024 18:09:58 +0100 Subject: [PATCH] [Base] Fixed compilation error in math.h --- src/xenia/base/math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/base/math.h b/src/xenia/base/math.h index 25aa89ede..f1cd21dd4 100644 --- a/src/xenia/base/math.h +++ b/src/xenia/base/math.h @@ -330,7 +330,7 @@ inline T rotate_right(T v, uint8_t sh) { constexpr unsigned char SHIFT_MASK = (CHAR_BIT * sizeof(T)) - 1; uint8_t rshr = sh & SHIFT_MASK; uint8_t lshl = static_cast(-static_cast(sh)) & SHIFT_MASK; - return (n >> rshr) | (n << lshl); + return (v >> rshr) | (v << lshl); } #if XE_PLATFORM_WIN32 template <>