diff --git a/pcsx2/MMI.cpp b/pcsx2/MMI.cpp index bf4d8e2ecd..cf5983d292 100644 --- a/pcsx2/MMI.cpp +++ b/pcsx2/MMI.cpp @@ -171,14 +171,11 @@ void PLZCW() { _PLZCW (1); } -__fi void PMFHL_CLAMP(u16 dst, u32 src) +__fi void PMFHL_CLAMP(u16& dst, s32 src) { - if ((int)src > (int)0x00007fff) - dst = 0x7fff; - else if ((int)src < (int)0xffff8000) - dst = 0x8000; - else - dst = (u16)src; + if (src > 0x00007fff) dst = 0x7fff; + else if (src < 0xffff8000) dst = 0x8000; + else dst = (u16)src; } void PMFHL() {