From af72224cba09c873c1f8e81d7bd9db9747f9553d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 11 Jun 2006 18:08:50 +0000 Subject: Fixed query problems on 64-bit git-svn-id: http://svn.drobilla.net/lad/libslv2@23 a436a847-0d15-0410-975c-d299462d15a1 --- src/port.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/port.c') diff --git a/src/port.c b/src/port.c index e25eb2f..14d95ff 100644 --- a/src/port.c +++ b/src/port.c @@ -72,7 +72,7 @@ slv2_port_get_property(SLV2Plugin* p, assert(property); char index_str[4]; - snprintf(index_str, 4, "%ld", index); + snprintf(index_str, (size_t)4, "%lu", index); rasqal_init(); @@ -80,7 +80,7 @@ slv2_port_get_property(SLV2Plugin* p, U("SELECT DISTINCT ?value FROM data: WHERE { \n" "plugin: lv2:port ?port \n" "?port lv2:index "), index_str, U(" \n" - "?port "), property, U(" ?value . \n}\n"), 0); + "?port "), property, U(" ?value . \n}\n"), NULL); SLV2Property result = slv2_query_get_results(results); -- cgit v1.2.1