Skip to content

Commit 80aaf66

Browse files
committed
fix
1 parent 366fef5 commit 80aaf66

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

middle_end/flambda2/from_lambda/closure_conversion.ml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1763,9 +1763,9 @@ let close_one_function acc ~code_id ~external_env ~by_function_slot
17631763
Bound_parameters.create main_code_params,
17641764
main_code_param_modes,
17651765
false,
1766-
(* num_trailing_local_closures = all params: function should never be
1767-
partially applied anyway *)
1768-
List.length main_code_params - 1,
1766+
(* num_trailing_local_closures = all params, but function should never
1767+
be partially applied anyway *)
1768+
List.length main_code_params,
17691769
result_arity_main_code,
17701770
unboxed_return_continuation,
17711771
my_unboxed_closure )

0 commit comments

Comments
 (0)