diff --git a/src/core/hle/function_wrappers.h b/src/core/hle/function_wrappers.h index d31fab298f..7b07d8ca82 100644 --- a/src/core/hle/function_wrappers.h +++ b/src/core/hle/function_wrappers.h @@ -750,11 +750,11 @@ template void WrapI_VUUUUU(){ } template void WrapI_US64() { - int retval = func(PARAM(0), ((PARAM(3) << 32) | PARAM(2))); + int retval = func(PARAM(0), (((u64)PARAM(3) << 32) | PARAM(2))); RETURN(retval); } template void WrapI_VVUUS64() { - int retval = func(Memory::GetPointer(PARAM(5)), Memory::GetPointer(PARAM(1)), PARAM(2), PARAM(3), ((PARAM(4) << 32) | PARAM(0))); + int retval = func(Memory::GetPointer(PARAM(5)), Memory::GetPointer(PARAM(1)), PARAM(2), PARAM(3), (((u64)PARAM(4) << 32) | PARAM(0))); RETURN(retval); }