diff options
| author | Tilka <tilkax@gmail.com> | 2023-12-12 20:56:04 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-12 20:56:04 +0000 |
| commit | b4bfc4feba19fe314913bceed913cebfc6d19372 (patch) | |
| tree | b20f05e2bf65cf0820e0bb6314345312a2a2b608 /Source/Core | |
| parent | 8cbb2c2e44064e730539945f22df790fd79634de (diff) | |
| parent | c1957ac1691a9c382b575650d9855d9ae6624096 (diff) | |
Merge pull request #12401 from AdmiralCurtiss/feature-flag-fix
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 { |
