From 9fe649eaea1412dbe3e52ba07024e951059583dd Mon Sep 17 00:00:00 2001 From: "Leonardo de-Oliveira-Martins (QIB)" Date: Fri, 5 Jul 2019 15:24:12 +0100 Subject: [PATCH] prettify fucntion --- lib/lowlevel.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/lowlevel.c b/lib/lowlevel.c index 57a3859..00d1c6e 100644 --- a/lib/lowlevel.c +++ b/lib/lowlevel.c @@ -78,16 +78,16 @@ compare_int_decreasing (const void *a, const void *b) int compare_double_increasing (const void *a, const void *b) { - if (*(double *) a > *(double *) b) return 1; - if (*(double *) a < *(double *) b) return -1; + if ((*(double *) a) > (*(double *) b)) return 1; + if ((*(double *) a) < (*(double *) b)) return -1; return 0; } int compare_double_decreasing (const void *a, const void *b) { - if (*(double *) a < *(double *) b) return 1; - if (*(double *) a > *(double *) b) return -1; + if ((*(double *) a) < (*(double *) b)) return 1; + if ((*(double *) a) > (*(double *) b)) return -1; return 0; }