diff options
Diffstat (limited to 'src/collections.c')
-rw-r--r-- | src/collections.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 |