From bcb7872768bce6c60770308d2e1babad11c2b6a0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 8 May 2007 16:04:09 +0000 Subject: Code cleanups. Updated lv2.ttl. git-svn-id: http://svn.drobilla.net/lad/slv2@518 a436a847-0d15-0410-975c-d299462d15a1 --- src/query.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/query.c') diff --git a/src/query.c b/src/query.c index b7eae2d..d7f583f 100644 --- a/src/query.c +++ b/src/query.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include @@ -160,9 +161,11 @@ slv2_plugin_simple_query(SLV2Plugin plugin, const char* sparql_str, unsigned variable) { + assert(variable < INT_MAX); + librdf_query_results* results = slv2_plugin_query(plugin, sparql_str); - SLV2Values ret = slv2_query_get_variable_bindings(results, variable); + SLV2Values ret = slv2_query_get_variable_bindings(results, (int)variable); librdf_free_query_results(results); -- cgit v1.2.1