From c1957ac1691a9c382b575650d9855d9ae6624096 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Tue, 12 Dec 2023 21:16:29 +0100 Subject: [PATCH] JitCommon: Fix feature_flags truncation in index calculation. --- Source/Core/Core/PowerPC/JitCommon/JitCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/PowerPC/JitCommon/JitCache.cpp b/Source/Core/Core/PowerPC/JitCommon/JitCache.cpp index 327ee108a0..ecd7600700 100644 --- a/Source/Core/Core/PowerPC/JitCommon/JitCache.cpp +++ b/Source/Core/Core/PowerPC/JitCommon/JitCache.cpp @@ -507,7 +507,7 @@ size_t JitBaseBlockCache::FastLookupIndexForAddress(u32 address, u32 feature_fla { if (m_entry_points_ptr) { - return (feature_flags << 30) | (address >> 2); + return (static_cast(feature_flags) << 30) | (address >> 2); } else {