summaryrefslogtreecommitdiffstats
path: root/src/collections.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-03-14 21:23:34 -0400
committerDavid Robillard <d@drobilla.net>2022-03-14 21:23:34 -0400
commit3fe2e0ea0c285150672054ee2717307c4d7b189f (patch)
tree272c0b60ce38ab6463237c7c21555c1cb7ead8c3 /src/collections.c
parent65e718da3a8154560b9451c273ce94eb195fa71a (diff)
downloadlilv-3fe2e0ea0c285150672054ee2717307c4d7b189f.tar.gz
lilv-3fe2e0ea0c285150672054ee2717307c4d7b189f.tar.bz2
lilv-3fe2e0ea0c285150672054ee2717307c4d7b189f.zip
fixup! WIP: Port to serd1serd1
Diffstat (limited to 'src/collections.c')
-rw-r--r--src/collections.c4
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