Skip to content

Commit

Permalink
pkg: remove polymorphic comparison
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <[email protected]>

<!-- ps-id: d634f7b4-a7db-4e84-87ed-1f3f153fab48 -->

Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg committed Jan 18, 2025
1 parent c750e5b commit 82825b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vendor/opam/src/format/opamPackage.ml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ module Version = struct
let small_compare a b =
if version_style_equal a.style b.style then
let c = Int64.compare a.int b.int in
if c == 0 then
if c = 0 then
(* Only consider the suffix if the numeric part of both versions is the same. *)
match a.has_suffix, b.has_suffix with
| false, false -> Some 0
Expand Down

0 comments on commit 82825b8

Please sign in to comment.