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 0667e43a1..a32ae6344 100644
--- a/src/shell-interface.h
+++ b/src/shell-interface.h
@@ -169,7 +169,7 @@ struct ShellExternalInterface : ModuleInstance::ExternalInterface {
trap("callIndirect: bad # of arguments");
}
size_t i = 0;
- for (auto& param : func->sig.params) {
+ for (const auto& param : func->sig.params) {
if (!Type::isSubType(arguments[i++].type, param)) {
trap("callIndirect: bad argument type");
}