diff options
author | David Robillard <d@drobilla.net> | 2007-05-08 16:04:09 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-05-08 16:04:09 +0000 |
commit | bcb7872768bce6c60770308d2e1babad11c2b6a0 (patch) | |
tree | 375bd561963da3fdccad67777c3cb5af9a529e9a /src/query.c | |
parent | f6ff6e487201bdd94e584397ce829daaa424aba9 (diff) | |
download | lilv-bcb7872768bce6c60770308d2e1babad11c2b6a0.tar.gz lilv-bcb7872768bce6c60770308d2e1babad11c2b6a0.tar.bz2 lilv-bcb7872768bce6c60770308d2e1babad11c2b6a0.zip |
Code cleanups.
Updated lv2.ttl.
git-svn-id: http://svn.drobilla.net/lad/slv2@518 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/query.c')
-rw-r--r-- | src/query.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 <stdlib.h> #include <assert.h> #include <librdf.h> +#include <limits.h> #include <slv2/plugin.h> #include <slv2/util.h> #include <slv2/values.h> @@ -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); |