summaryrefslogtreecommitdiffstats
path: root/src/collections.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-10 04:00:33 +0000
committerDavid Robillard <d@drobilla.net>2012-08-10 04:00:33 +0000
commit7339c3c6f211f7903465c2345583de06d727caf6 (patch)
tree11ad4b0654c6d8f9e69b9021c492cfd1961977d1 /src/collections.c
parent402fec7d2baa182464129ab510e2b1fe266bfe48 (diff)
downloadlilv-7339c3c6f211f7903465c2345583de06d727caf6.tar.gz
lilv-7339c3c6f211f7903465c2345583de06d727caf6.tar.bz2
lilv-7339c3c6f211f7903465c2345583de06d727caf6.zip
Always back LilvNode with a SordNode and shave 16 bytes off of LilvNode.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4642 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/collections.c')
-rw-r--r--src/collections.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/collections.c b/src/collections.c
index dd676e6..f7a035a 100644
--- a/src/collections.c
+++ b/src/collections.c
@@ -25,8 +25,8 @@ lilv_ptr_cmp(const void* a, const void* b, void* user_data)
int
lilv_resource_node_cmp(const void* a, const void* b, void* user_data)
{
- const SordNode* an = ((const LilvNode*)a)->val.uri_val;
- const SordNode* bn = ((const LilvNode*)b)->val.uri_val;
+ const SordNode* an = ((const LilvNode*)a)->node;
+ const SordNode* bn = ((const LilvNode*)b)->node;
return (intptr_t)an - (intptr_t)bn;
}