Core: Fix bug in CX86RegInfo::FreeX86Reg where x86RegIndex_Size was introduced

This commit is contained in:
zilmar 2022-09-05 10:42:49 +09:30
parent a5c6f25ee3
commit 7d55fdca37
1 changed files with 1 additions and 1 deletions

View File

@ -475,7 +475,7 @@ CX86Ops::CX86Ops::x86Reg CX86RegInfo::FreeX86Reg()
}
for (int i = 0; i < x86RegIndex_Size; i++)
{
for (int32_t z = 0; z < 9; z++)
for (int32_t z = 0; z < x86RegIndex_Size - 1; z++)
{
if (MapCount[z] < MapCount[z + 1])
{