Skip to content

Commit da20676

Browse files
committed
[interpreter] ARgh
1 parent 7ab5846 commit da20676

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

interpreter/valid/valid.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ let push (ell1, ts1) (ell2, ts2) =
103103
(if ell1 = Ellipses || ell2 = Ellipses then Ellipses else NoEllipses),
104104
ts2 @ ts1
105105

106-
let peek i (ell, ts) at =
106+
let peek i (ell, ts) =
107107
try List.nth (List.rev ts) i with Failure _ -> None
108108

109109

@@ -211,10 +211,10 @@ let rec check_instr (c : context) (e : instr) (s : infer_stack_type) : op_type =
211211
[] --> []
212212

213213
| Drop ->
214-
[peek 0 s e.at] -~> []
214+
[peek 0 s] -~> []
215215

216216
| Select None ->
217-
let t = peek 1 s e.at in
217+
let t = peek 1 s in
218218
require (match t with None -> true | Some t -> is_num_type t) e.at
219219
("type mismatch: instruction requires numeric type" ^
220220
" but stack has " ^ string_of_infer_type t);
@@ -361,7 +361,7 @@ let rec check_instr (c : context) (e : instr) (s : infer_stack_type) : op_type =
361361
[] --> [RefType t]
362362

363363
| RefIsNull ->
364-
let t = peek 0 s e.at in
364+
let t = peek 0 s in
365365
require (match t with None -> true | Some t -> is_ref_type t) e.at
366366
("type mismatch: instruction requires reference type" ^
367367
" but stack has " ^ string_of_infer_type t);

0 commit comments

Comments
 (0)