summaryrefslogtreecommitdiff
path: root/src/shell-interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shell-interface.h')
-rw-r--r--src/shell-interface.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shell-interface.h b/src/shell-interface.h
index cd5e5210b..f1b68ab60 100644
--- a/src/shell-interface.h
+++ b/src/shell-interface.h
@@ -99,7 +99,7 @@ struct ShellExternalInterface : ModuleInstance::ExternalInterface {
// add spectest globals
ModuleUtils::iterImportedGlobals(wasm, [&](Global* import) {
if (import->module == SPECTEST && import->base.startsWith(GLOBAL)) {
- switch (import->type) {
+ switch (import->type.getSingle()) {
case Type::i32:
globals[import->name] = Literal(int32_t(666));
break;