diff options
author | David Robillard <d@drobilla.net> | 2006-06-11 18:08:50 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-06-11 18:08:50 +0000 |
commit | af72224cba09c873c1f8e81d7bd9db9747f9553d (patch) | |
tree | 7cc8379be2362ab7312eb50c4020bdd9feb4adfa /src/plugin.c | |
parent | 7fd4168fe8581e46f4ee35cc182db6220b6eed04 (diff) | |
download | lilv-af72224cba09c873c1f8e81d7bd9db9747f9553d.tar.gz lilv-af72224cba09c873c1f8e81d7bd9db9747f9553d.tar.bz2 lilv-af72224cba09c873c1f8e81d7bd9db9747f9553d.zip |
Fixed query problems on 64-bit
git-svn-id: http://svn.drobilla.net/lad/libslv2@23 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/plugin.c')
-rw-r--r-- | src/plugin.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugin.c b/src/plugin.c index 27fb481..8c7a4cc 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -60,7 +60,7 @@ const unsigned char* slv2_plugin_get_data_path(const SLV2Plugin* p) { assert(p); - if (!strncmp((char*)p->data_url, "file://", 7)) + if (!strncmp((char*)p->data_url, "file://", (size_t)7)) return (p->data_url) + 7; else return NULL; @@ -79,7 +79,7 @@ const unsigned char* slv2_plugin_get_library_path(const SLV2Plugin* p) { assert(p); - if (!strncmp((char*)p->lib_url, "file://", 7)) + if (!strncmp((char*)p->lib_url, "file://", (size_t)7)) return (p->lib_url) + 7; else return NULL; @@ -152,7 +152,7 @@ slv2_plugin_get_property(const SLV2Plugin* p, rasqal_query_results* results = slv2_plugin_run_query(p, U("SELECT DISTINCT ?value FROM data: WHERE { \n" "plugin: "), property, U(" ?value . \n" - "} \n"), 0); + "} \n"), NULL); struct _Property* result = slv2_query_get_results(results); @@ -175,7 +175,7 @@ slv2_plugin_get_num_ports(const SLV2Plugin* p) rasqal_query_results* results = slv2_plugin_run_query(p, U("SELECT DISTINCT ?value FROM data: WHERE { \n" "plugin: lv2:port ?value . \n" - "} \n"), 0); + "} \n"), NULL); while (!rasqal_query_results_finished(results)) { ++result; |