package_remove: fix length comparison

This commit is contained in:
Johannes Brechtmann 2019-05-15 22:06:03 +02:00 committed by Duncan Overbruck
parent 3eb064af2c
commit 949d2d90e7

View File

@ -99,8 +99,9 @@ struct order_length_t {
}; };
static int cmp_order_length(const void *l1, const void *l2) { static int cmp_order_length(const void *l1, const void *l2) {
return ((const struct order_length_t*)l1)->len < size_t a = ((const struct order_length_t*)l1)->len;
((const struct order_length_t*)l2)->len; size_t b = ((const struct order_length_t*)l2)->len;
return (a < b) - (b < a);
} }
static int static int