Skip to content

Commit

Permalink
fix merge or locations
Browse files Browse the repository at this point in the history
  • Loading branch information
wies committed Nov 15, 2024
1 parent 0b16223 commit 8f750f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/loc.ml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ let merge l1 l2 =
assert (String.equal (file_name l1) (file_name l2));
let spos =
let c = compare_position l1.loc_start l2.loc_start in
if c >= 0 then l1.loc_start else l2.loc_start
if c <= 0 then l1.loc_start else l2.loc_start
in
let epos =
let c = compare_position l1.loc_end l2.loc_end in
Expand Down

0 comments on commit 8f750f6

Please sign in to comment.