summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-12-18 00:16:24 +0000
committerDavid Robillard <d@drobilla.net>2011-12-18 00:16:24 +0000
commita12728f443694420b2d4e7a9307d738513cef24f (patch)
tree01d99fb19d1d5ac8efba19bbaffc874e618fbf59
parentb8eb516e97042ca9559aaa506becf504180df0a8 (diff)
downloadlilv-a12728f443694420b2d4e7a9307d738513cef24f.tar.gz
lilv-a12728f443694420b2d4e7a9307d738513cef24f.tar.bz2
lilv-a12728f443694420b2d4e7a9307d738513cef24f.zip
Fix broken lilv_resource_node_cmp (always equal)
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3879 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/collections.c2
-rw-r--r--src/world.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/collections.c b/src/collections.c
index 77917f6..95542da 100644
--- a/src/collections.c
+++ b/src/collections.c
@@ -26,7 +26,7 @@ int
lilv_resource_node_cmp(const void* a, const void* b, void* user_data)
{
const SordNode* an = ((LilvNode*)a)->val.uri_val;
- const SordNode* bn = ((LilvNode*)a)->val.uri_val;
+ const SordNode* bn = ((LilvNode*)b)->val.uri_val;
return (intptr_t)an - (intptr_t)bn;
}
diff --git a/src/world.c b/src/world.c
index d5af0fe..ddcf5d1 100644
--- a/src/world.c
+++ b/src/world.c
@@ -48,7 +48,6 @@ lilv_world_new(void)
world->loaded_files = zix_tree_new(
false, lilv_resource_node_cmp, NULL, (ZixDestroyFunc)lilv_node_free);
-
#define NS_DYNMAN "http://lv2plug.in/ns/ext/dynmanifest#"
#define NS_DCTERMS "http://purl.org/dc/terms/"