JitCommon: Fix feature_flags truncation in index calculation.

This commit is contained in:
Admiral H. Curtiss 2023-12-12 21:16:29 +01:00
parent c92e402454
commit c1957ac169
No known key found for this signature in database
GPG Key ID: F051B4C4044F33FB
1 changed files with 1 additions and 1 deletions

View File

@ -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
{