Merge pull request #47968 from neikeq/issue-47898

[3.x] C#: Fix `double` casting in wasm m2n trampolines
This commit is contained in:
Rémi Verschelde 2021-04-17 08:14:03 +02:00 committed by GitHub
commit 264d952a18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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];
}
};