1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 10:50:24 -04:00
nix/src/nix-env
Jade Lovelace dd75711895 Use std::strong_ordering for version comparison
The actual motive here is the avoidance of integer overflow if we were
to make these use checked NixInts and retain the subtraction.

However, the actual *intent* of this code is a three-way comparison,
which can be done with operator<=>, so we should just do *that* instead.

Change-Id: I7f9a7da1f3176424b528af6d1b4f1591e4ab26bf
2024-07-30 18:13:05 -07:00
..
buildenv.nix Move some corepkgs into the nix binary 2020-03-11 16:57:48 +01:00
nix-env.cc Use std::strong_ordering for version comparison 2024-07-30 18:13:05 -07:00
user-env.cc Cleanup ContentAddressMethod to match docs 2024-06-24 10:24:06 -04:00
user-env.hh DerivationInfo -> PackageInfo 2024-01-16 15:28:03 +01:00