mirror of https://github.com/PCSX2/pcsx2.git
Thanks Bluefire101 for reporting this (eventually) undefined behavior (depending on who you ask).
Even if there was no problem, code should always be clear on what it does.
This commit is contained in:
parent
0ddb77c048
commit
ecb42cad9b
|
@ -366,13 +366,15 @@ template< typename T > void xWrite( T val );
|
|||
|
||||
xRegisterSSE& operator++()
|
||||
{
|
||||
++Id &= (iREGCNT_XMM-1);
|
||||
++Id;
|
||||
Id &= (iREGCNT_XMM - 1);
|
||||
return *this;
|
||||
}
|
||||
|
||||
xRegisterSSE& operator--()
|
||||
{
|
||||
--Id &= (iREGCNT_XMM-1);
|
||||
--Id;
|
||||
Id &= (iREGCNT_XMM - 1);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue