Skip to content

Commit ee89fb8

Browse files
authored
refactor(pkg): remove polymorphic comparison (#11287)
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
1 parent 3a1ce74 commit ee89fb8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/0install-solver/sat.ml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,12 @@ module Make (User : USER) = struct
134134

135135
let compare (s1, v1) (s2, v2) =
136136
match VarID.compare v1.id v2.id with
137-
| Eq -> Poly.compare s1 s2
137+
| Eq ->
138+
(match s1, s2 with
139+
| Pos, Pos -> Eq
140+
| Pos, _ -> Gt
141+
| _, Pos -> Lt
142+
| Neg, Neg -> Eq)
138143
| x -> x
139144
;;
140145
end)

0 commit comments

Comments
 (0)