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:
cottonvibes 2010-09-01 02:03:10 +00:00
parent 27a3f11278
commit 807bd9659c
1 changed files with 3 additions and 3 deletions

View File

@ -173,9 +173,9 @@ void PLZCW() {
__fi void PMFHL_CLAMP(u16& dst, s32 src)
{
if (src > 0x00007fff) dst = 0x7fff;
else if (src < 0xffff8000) dst = 0x8000;
else dst = (u16)src;
if (src > 0x7fff) dst = 0x7fff;
else if (src < -0x8000) dst = 0x8000;
else dst = (u16)src;
}
void PMFHL() {