mirror of https://github.com/PCSX2/pcsx2.git
pcsx2 mmi: apparently msvc does an unsigned compare jump when you have:
int src; if (src < 0xffff8000) {} so solution is either use (int)0xffff8000 or -0x8000... it also doesn't seem to print out warnings about this either D: git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3712 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
27a3f11278
commit
807bd9659c
|
@ -173,8 +173,8 @@ void PLZCW() {
|
|||
|
||||
__fi void PMFHL_CLAMP(u16& dst, s32 src)
|
||||
{
|
||||
if (src > 0x00007fff) dst = 0x7fff;
|
||||
else if (src < 0xffff8000) dst = 0x8000;
|
||||
if (src > 0x7fff) dst = 0x7fff;
|
||||
else if (src < -0x8000) dst = 0x8000;
|
||||
else dst = (u16)src;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue