summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorbunnei <ericbunnie@gmail.com>2014-05-29 04:03:10 +0200
committerbunnei <ericbunnie@gmail.com>2014-05-29 04:03:10 +0200
commitc4b5168b453ed2738bac61e05810fd4f5b95217d (patch)
treef9411595fdf340e899bffff2c032e0dadf7bef18 /src/core/hle
parenthle: removed PARAM64 macro (this was incorrect), made several bug fixes accordingly for decoding U64 function parameters (diff)
downloadyuzu-c4b5168b453ed2738bac61e05810fd4f5b95217d.tar
yuzu-c4b5168b453ed2738bac61e05810fd4f5b95217d.tar.gz
yuzu-c4b5168b453ed2738bac61e05810fd4f5b95217d.tar.bz2
yuzu-c4b5168b453ed2738bac61e05810fd4f5b95217d.tar.lz
yuzu-c4b5168b453ed2738bac61e05810fd4f5b95217d.tar.xz
yuzu-c4b5168b453ed2738bac61e05810fd4f5b95217d.tar.zst
yuzu-c4b5168b453ed2738bac61e05810fd4f5b95217d.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/function_wrappers.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/function_wrappers.h b/src/core/hle/function_wrappers.h
index d31fab298..7b07d8ca8 100644
--- a/src/core/hle/function_wrappers.h
+++ b/src/core/hle/function_wrappers.h
@@ -750,11 +750,11 @@ template<int func(void*, u32, u32, u32, u32, u32)> void WrapI_VUUUUU(){
}
template<int func(u32, s64)> 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<int func(void*, void*, u32, u32, s64)> 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);
}