summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wasm-shell.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-shell.cpp b/src/wasm-shell.cpp
index 1ebb0feeb..fd83d5027 100644
--- a/src/wasm-shell.cpp
+++ b/src/wasm-shell.cpp
@@ -187,7 +187,7 @@ int main(int argc, char **argv) {
IString name = invoke[1]->str();
ModuleInstance::LiteralList arguments;
for (size_t j = 2; j < invoke.size(); j++) {
- Expression* argument = builder.parseExpression(*invoke[2]);
+ Expression* argument = builder.parseExpression(*invoke[j]);
arguments.push_back(argument->dyn_cast<Const>()->value);
}
bool trapped = false;