summaryrefslogtreecommitdiffstats
path: root/common/sys
diff options
context:
space:
mode:
Diffstat (limited to 'common/sys')
-rw-r--r--common/sys/sort.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/sys/sort.c b/common/sys/sort.c
index d649b9e4..78b0af2d 100644
--- a/common/sys/sort.c
+++ b/common/sys/sort.c
@@ -7,7 +7,8 @@ int cmp_int(const void *a, const void *b)
int cmp_int_desc(const void * a, const void * b)
{
- return cmp_int(b, a);
+ // return cmp_int(b, a);
+ return *(int*)b - *(int*)a;
}
int *