Skip to content

Commit fbe73c6

Browse files
committed
small cleanup
1 parent 681827d commit fbe73c6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

compiler/lib-wasm/link.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,6 @@ let info_from_sexp info =
345345
let build_info =
346346
info |> member "build_info" |> mandatory (single Build_info.from_sexp)
347347
in
348-
349348
let predefined_exceptions =
350349
info
351350
|> member "predefined_exceptions"

compiler/lib/shape.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ let rec merge (u : t) (v : t) =
4545
, Function { arity = a2; pure = p2; res = r2 } ) ->
4646
if a1 = a2 then Function { arity = a1; pure = p1 && p2; res = merge r1 r2 } else Top
4747
| Block b1, Block b2 ->
48-
if List.length b1 = List.length b2 then Block (List.map2 b1 b2 ~f:merge) else Top
48+
if List.compare_lengths b1 b2 = 0
49+
then Block (List.map2 b1 b2 ~f:merge)
50+
else Top
4951
| Top, _ | _, Top -> Top
5052
| Function _, Block _ | Block _, Function _ -> Top
5153

0 commit comments

Comments
 (0)