Skip to content

Commit

Permalink
Speedup OpamVersionCompare.equal
Browse files Browse the repository at this point in the history
  • Loading branch information
kit-ty-kate committed Aug 7, 2024
1 parent 0b4f278 commit 7760468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/opamVersionCompare.ml
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,4 @@ let compare (x : string) (y : string) =
else normalize_comp_result (compare_chunks r1 r2)

let equal (x : string) (y : string) =
if String.equal x y then true else (compare x y) = 0
compare x y = 0

0 comments on commit 7760468

Please # to comment.