summaryrefslogtreecommitdiff
path: root/src/apply-names.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/apply-names.cc')
-rw-r--r--src/apply-names.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/apply-names.cc b/src/apply-names.cc
index 4cabc13e..4b35d18e 100644
--- a/src/apply-names.cc
+++ b/src/apply-names.cc
@@ -328,10 +328,10 @@ Result NameApplier::VisitFunc(Index func_index, Func* func) {
CHECK_RESULT(UseNameForFuncTypeVar(&func->decl.type_var));
}
- MakeTypeBindingReverseMapping(func->decl.sig.param_types,
+ MakeTypeBindingReverseMapping(func->decl.sig.param_types.size(),
func->param_bindings, &param_index_to_name_);
- MakeTypeBindingReverseMapping(func->local_types, func->local_bindings,
+ MakeTypeBindingReverseMapping(func->local_types.size(), func->local_bindings,
&local_index_to_name_);
CHECK_RESULT(visitor_.VisitFunc(func));