diff options
Diffstat (limited to 'src/shell-interface.h')
-rw-r--r-- | src/shell-interface.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shell-interface.h b/src/shell-interface.h index 494722ab1..96b96cf15 100644 --- a/src/shell-interface.h +++ b/src/shell-interface.h @@ -174,19 +174,19 @@ struct ShellExternalInterface : ModuleInstance::ExternalInterface { if (!func) { trap("uninitialized table element"); } - if (sig != func->sig) { + if (sig != func->getSig()) { trap("callIndirect: function signatures don't match"); } - if (func->sig.params.size() != arguments.size()) { + if (func->getParams().size() != arguments.size()) { trap("callIndirect: bad # of arguments"); } size_t i = 0; - for (const auto& param : func->sig.params) { + for (const auto& param : func->getParams()) { if (!Type::isSubType(arguments[i++].type, param)) { trap("callIndirect: bad argument type"); } } - if (func->sig.results != results) { + if (func->getResults() != results) { trap("callIndirect: bad result type"); } if (func->imported()) { |