mirror of
https://github.com/yuzu-emu/yuzu-mainline
synced 2024-11-23 19:23:55 +00:00
hle: properly cast 64-bit function wrapper parameters to (u64)
This commit is contained in:
parent
9fd5d6c7d8
commit
c4b5168b45
1 changed files with 2 additions and 2 deletions
|
@ -750,11 +750,11 @@ template<int func(void*, u32, u32, u32, u32, u32)> void WrapI_VUUUUU(){
|
||||||
}
|
}
|
||||||
|
|
||||||
template<int func(u32, s64)> void WrapI_US64() {
|
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);
|
RETURN(retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<int func(void*, void*, u32, u32, s64)> void WrapI_VVUUS64() {
|
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);
|
RETURN(retval);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue