summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-04-17 08:14:44 +0200
committerGitHub <noreply@github.com>2021-04-17 08:14:44 +0200
commit837b5da6a4ddad968670636de18d2140fe2f7967 (patch)
tree16af9d43f1606890550c7c9320f56f142061d808 /modules
parent49511d439124ab5a71defd22639737f45bd0ff70 (diff)
parent27a66ee5286a82ee1bfa44033f0ce235036a5862 (diff)
Merge pull request #47969 from neikeq/issue-47898-4.0
[master] C#: Fix `double` casting in wasm m2n trampolines
Diffstat (limited to 'modules')
-rw-r--r--modules/mono/mono_gd/gd_mono_wasm_m2n.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/mono_gd/gd_mono_wasm_m2n.h b/modules/mono/mono_gd/gd_mono_wasm_m2n.h
index 159a2ed7b6..366662ff81 100644
--- a/modules/mono/mono_gd/gd_mono_wasm_m2n.h
+++ b/modules/mono/mono_gd/gd_mono_wasm_m2n.h
@@ -176,7 +176,7 @@ T m2n_arg_cast(Mono_InterpMethodArguments *p_margs, size_t p_idx) {
} else if constexpr (cookie == 'F') {
return *reinterpret_cast<float *>(&p_margs->fargs[fidx(p_idx)]);
} else if constexpr (cookie == 'D') {
- return (T)(size_t)p_margs->fargs[p_idx];
+ return (T)p_margs->fargs[p_idx];
}
}