diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-12-12 21:16:29 +0100 |
|---|---|---|
| committer | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-12-12 21:16:29 +0100 |
| commit | c1957ac1691a9c382b575650d9855d9ae6624096 (patch) | |
| tree | 74356c257bcdabef6113efac3e67e6e7d4bece4a /Source/Core | |
| parent | c92e4024544d4b0553f5cb6e922891b39de0b605 (diff) | |
JitCommon: Fix feature_flags truncation in index calculation.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/PowerPC/JitCommon/JitCache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<size_t>(feature_flags) << 30) | (address >> 2); } else { |
