diff --git a/src/ck_hp.c b/src/ck_hp.c index 5e941fb..d31637c 100644 --- a/src/ck_hp.c +++ b/src/ck_hp.c @@ -154,14 +154,7 @@ hazard_compare(const void *a, const void *b) x = a; y = b; - - if (*x < *y) { - return -1; - } else if (*x == *y) { - return 0; - } - - return 1; + return ((*x > *y) - (*x < *y)); } CK_CC_INLINE static bool