mirror of
https://github.com/ARMSX2/ARMSX2.git
synced 2026-08-24 16:50:16 -07:00
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:
+3
-3
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user