diff options
Diffstat (limited to 'arraylist.c')
| -rw-r--r-- | arraylist.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/arraylist.c b/arraylist.c index 668278e..2d348f3 100644 --- a/arraylist.c +++ b/arraylist.c | |||
| @@ -278,15 +278,12 @@ my_compare(const T *a, const T *b, void *args) | |||
| 278 | { | 278 | { |
| 279 | (void) args; | 279 | (void) args; |
| 280 | 280 | ||
| 281 | if ( *a > *b ) { | 281 | if ( *a > *b ) |
| 282 | return 1; | 282 | return 1; |
| 283 | } | 283 | else if ( *a < *b ) |
| 284 | else if ( *a < *b ) { | ||
| 285 | return -1; | 284 | return -1; |
| 286 | } | 285 | else |
| 287 | else { | ||
| 288 | return 0; | 286 | return 0; |
| 289 | } | ||
| 290 | } | 287 | } |
| 291 | 288 | ||
| 292 | static int | 289 | static int |
