From 3fe2e0ea0c285150672054ee2717307c4d7b189f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 14 Mar 2022 21:23:34 -0400 Subject: fixup! WIP: Port to serd1 --- src/collections.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/collections.c') diff --git a/src/collections.c b/src/collections.c index 04b0c51..06b402e 100644 --- a/src/collections.c +++ b/src/collections.c @@ -30,7 +30,9 @@ lilv_ptr_cmp(const void* a, const void* b, const void* user_data) { (void)user_data; - return (intptr_t)a - (intptr_t)b; + return ((uintptr_t)a < (uintptr_t)b) ? -1 + : ((uintptr_t)b < (uintptr_t)a) ? 1 + : 0; } int -- cgit v1.2.1