mirror of https://github.com/PCSX2/pcsx2.git
iCore: Fix more negative array index warnings.
Forgot these. Codacy.
This commit is contained in:
parent
1594b46f68
commit
205cb2c29d
|
@ -400,6 +400,13 @@ int _allocGPRtoXMMreg(int xmmreg, int gprreg, int mode)
|
|||
if (xmmreg == -1)
|
||||
xmmreg = _getFreeXMMreg();
|
||||
|
||||
if (xmmreg == -1)
|
||||
{
|
||||
pxFailDev("*PCSX2*: XMM Reg Allocation Error in _allocGPRtoXMMreg()!");
|
||||
throw Exception::FailedToAllocateRegister();
|
||||
}
|
||||
else
|
||||
{
|
||||
g_xmmtypes[xmmreg] = XMMT_INT;
|
||||
xmmregs[xmmreg].inuse = 1;
|
||||
xmmregs[xmmreg].type = XMMTYPE_GPRREG;
|
||||
|
@ -407,6 +414,7 @@ int _allocGPRtoXMMreg(int xmmreg, int gprreg, int mode)
|
|||
xmmregs[xmmreg].mode = mode;
|
||||
xmmregs[xmmreg].needed = 1;
|
||||
xmmregs[xmmreg].counter = g_xmmAllocCounter++;
|
||||
}
|
||||
|
||||
if (mode & MODE_READ)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue