File tree 3 files changed +5
-4
lines changed
3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,9 @@ let with_file_as_chan filename f =
46
46
let max_int (x : int ) y =
47
47
if x > = y then x else y
48
48
49
+ let min_int (x : int ) y =
50
+ if x < y then x else y
51
+
49
52
let max_int_option (x : int option ) y =
50
53
match x, y with
51
54
| None , _ -> y
Original file line number Diff line number Diff line change @@ -44,11 +44,9 @@ val finally :
44
44
val with_file_as_chan : string -> (out_channel -> 'a ) -> 'a
45
45
46
46
47
-
48
-
49
-
50
47
val max_int : int -> int -> int
51
48
49
+ val min_int : int -> int -> int
52
50
val max_int_option :
53
51
int option ->
54
52
int option ->
Original file line number Diff line number Diff line change @@ -2648,7 +2648,7 @@ and unify_row env row1 row2 =
2648
2648
let more =
2649
2649
if fixed1 then rm1 else
2650
2650
if fixed2 then rm2 else
2651
- newty2 (min rm1.level rm2.level) (Tvar None ) in
2651
+ newty2 (Ext_pervasives. min_int rm1.level rm2.level) (Tvar None ) in
2652
2652
let fixed = fixed1 || fixed2
2653
2653
and closed = row1.row_closed || row2.row_closed in
2654
2654
let keep switch =
You can’t perform that action at this time.
0 commit comments