From 837fc3a7c0b695917a9a95120b7abda7a8be83f9 Mon Sep 17 00:00:00 2001 From: phani Date: Wed, 1 Jan 2020 14:31:47 -0500 Subject: [PATCH] legacy function pointer typecasts fail in wasm --- runtime/compiletime/memory/64bit_nix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/compiletime/memory/64bit_nix.c b/runtime/compiletime/memory/64bit_nix.c index b0eaaf1..b63ebe1 100644 --- a/runtime/compiletime/memory/64bit_nix.c +++ b/runtime/compiletime/memory/64bit_nix.c @@ -121,7 +121,8 @@ get_function_from_table(u32 idx, u32 type_id) struct indirect_table_entry f = module_indirect_table[idx]; - assert(f.type_id == type_id && f.func_pointer); +// assert(f.type_id == type_id); + assert(f.func_pointer); return f.func_pointer; }