a6f7467d
by Allan McRae at 2026-01-25T22:50:56+10:00
Prevent overflow when sorting package download order
When comparing the package download size, the difference is cast to an
int. This results in an integer overflow for very large packages.
Return -1, 0, or 1 to indicate relative size to avoid the overflow.
Fixes #305.
Signed-off-by: Allan McRae <allan@archlinux.org>