Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit da162d8

Browse files
authored
Feedback from #2 (#3)
1 parent 5c4f381 commit da162d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interpreter/valid/valid.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,8 @@ let check_func (c : context) (f : func) =
381381

382382
let is_const (c : context) (e : instr) =
383383
match e.it with
384-
| Const _ -> true
385-
| Binary (Values.I32 I32Op.(Add | Sub | Mul)) -> true
384+
| Const _
385+
| Binary (Values.I32 I32Op.(Add | Sub | Mul))
386386
| Binary (Values.I64 I64Op.(Add | Sub | Mul)) -> true
387387
| GlobalGet x -> let GlobalType (_, mut) = global c x in mut = Immutable
388388
| _ -> false

0 commit comments

Comments
 (0)