Skip to content

Commit c78f405

Browse files
committed
Name
1 parent 89bb611 commit c78f405

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interpreter/exec/eval.ml

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ let is_jumping e =
104104

105105
let compose (vs1, es1) (vs2, es2) = vs1 @ vs2, es1 @ es2
106106

107-
let contref_arity contarg =
107+
let switcher_contref_arity contarg =
108108
match contarg with
109109
| RefT (_, DefHT def) ->
110110
(match as_cont_str_type (expand_def_type def) with
@@ -422,7 +422,7 @@ let rec step (c : config) : config =
422422

423423
| Switch (x, y), Ref (ContRef ({contents = Some (n, ctxt)} as cont)) :: vs ->
424424
let FuncT (ts, _) = func_type_of_cont_type c.frame.inst (cont_type c.frame.inst x) in
425-
let arity = contref_arity (Lib.List.last ts) in
425+
let arity = switcher_contref_arity (Lib.List.last ts) in
426426
let tagt = tag c.frame.inst y in
427427
let args, vs' = i32_split (Int32.sub n 1l) vs e.at in
428428
(* NOTE(dhil): Slight hack here. We update the arity of given

0 commit comments

Comments
 (0)