X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fevent.c;h=05ddb47fb4031aff06ffb1c83278583e9ecff588;hb=28be4baae016a5a771d0d9ec6e97ef38a4fc9e46;hp=56d8fa97e50294f28b2a5a21573694ede5c7d99d;hpb=021293e0d03de8d29b22104a8f9bef625b135640;p=tinc diff --git a/src/event.c b/src/event.c index 56d8fa97..05ddb47f 100644 --- a/src/event.c +++ b/src/event.c @@ -60,11 +60,14 @@ static int timeout_compare(const timeout_t *a, const timeout_t *b) { return 1; } - if(a < b) { + uintptr_t ap = (uintptr_t)a; + uintptr_t bp = (uintptr_t)b; + + if(ap < bp) { return -1; } - if(a > b) { + if(ap > bp) { return 1; }