package_remove: fix length comparison
This commit is contained in:
parent
3eb064af2c
commit
949d2d90e7
@ -99,8 +99,9 @@ struct order_length_t {
|
||||
};
|
||||
|
||||
static int cmp_order_length(const void *l1, const void *l2) {
|
||||
return ((const struct order_length_t*)l1)->len <
|
||||
((const struct order_length_t*)l2)->len;
|
||||
size_t a = ((const struct order_length_t*)l1)->len;
|
||||
size_t b = ((const struct order_length_t*)l2)->len;
|
||||
return (a < b) - (b < a);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
x
Reference in New Issue
Block a user