diff options
author | David Robillard <d@drobilla.net> | 2012-01-16 22:45:21 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-01-16 22:45:21 +0000 |
commit | 790aaf84bd19c63934d51b79ef7e936777a0cd02 (patch) | |
tree | 14b95882b5fbeb6f50f16c269390b76dafe3cac3 /src/sord_test.c | |
parent | bcdb9db57e8f68ba90077a77a4152b72ca6da7ac (diff) | |
download | sord-790aaf84bd19c63934d51b79ef7e936777a0cd02.tar.gz sord-790aaf84bd19c63934d51b79ef7e936777a0cd02.tar.bz2 sord-790aaf84bd19c63934d51b79ef7e936777a0cd02.zip |
Fix warnings.
git-svn-id: http://svn.drobilla.net/sord/trunk@195 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'src/sord_test.c')
-rw-r--r-- | src/sord_test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sord_test.c b/src/sord_test.c index fa2e9ff..279c147 100644 --- a/src/sord_test.c +++ b/src/sord_test.c @@ -62,25 +62,25 @@ generate(SordWorld* world, size_t n_quads, SordNode* graph) { - fprintf(stderr, "Generating %zu (S P *) quads with %zu objects each\n", + fprintf(stderr, "Generating %zu (S P *) quads with %u objects each\n", n_quads, n_objects_per); for (size_t i = 0; i < n_quads; ++i) { int num = (i * n_objects_per) + 1; SordNode* ids[2 + n_objects_per]; - for (size_t j = 0; j < 2 + n_objects_per; ++j) { + for (int j = 0; j < 2 + n_objects_per; ++j) { ids[j] = uri(world, num++); } - for (size_t j = 0; j < n_objects_per; ++j) { + for (int j = 0; j < n_objects_per; ++j) { SordQuad tup = { ids[0], ids[1], ids[2 + j] }; if (!sord_add(sord, tup)) { return test_fail("Fail: Failed to add quad\n"); } } - for (size_t j = 0; j < 2 + n_objects_per; ++j) { + for (int j = 0; j < 2 + n_objects_per; ++j) { sord_node_free(world, ids[j]); } } |