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:
Ignacio Roldán Etcheverry 2021-04-17 05:23:47 +02:00
parent d91c1a60a4
commit 83494c30fe

View file

@ -201,7 +201,7 @@ struct m2n_arg_cast_helper<T, 'F'> {
template <typename T>
struct m2n_arg_cast_helper<T, 'D'> {
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];
}
};