Browse Source

Merge pull request #47968 from neikeq/issue-47898

[3.x] C#: Fix `double` casting in wasm m2n trampolines
Rémi Verschelde 4 years ago
parent
commit
264d952a18
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/mono/mono_gd/gd_mono_wasm_m2n.h

+ 1 - 1
modules/mono/mono_gd/gd_mono_wasm_m2n.h

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