Skip to content

Commit

Permalink
prettify fucntion
Browse files Browse the repository at this point in the history
  • Loading branch information
leomrtns committed Jul 5, 2019
1 parent d743ef5 commit 9fe649e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/lowlevel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9fe649e

Please sign in to comment.