C#: Fix double
casting in wasm m2n trampolines
The trampolines were casting double to `size_t` (likely a copy-paste mistake), so the value was getting truncated.
This commit is contained in:
parent
d91c1a60a4
commit
83494c30fe
@ -201,7 +201,7 @@ struct m2n_arg_cast_helper<T, 'F'> {
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
struct m2n_arg_cast_helper<T, 'D'> {
|
struct m2n_arg_cast_helper<T, 'D'> {
|
||||||
static T cast(Mono_InterpMethodArguments *p_margs, size_t p_idx) {
|
static T cast(Mono_InterpMethodArguments *p_margs, size_t p_idx) {
|
||||||
return (T)(size_t)p_margs->fargs[p_idx];
|
return (T)p_margs->fargs[p_idx];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user