diff options
author | David Robillard <d@drobilla.net> | 2018-12-31 11:48:42 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-27 13:13:58 +0100 |
commit | 1997ab63fb66a55341de0311e1b309419a32d724 (patch) | |
tree | d1513d326679ec79b01ab4b0e6cee310c721514b /tests/model_test.c | |
parent | 60bb4a81c03d6b0a08f9c858ff1a99bf3bcc602e (diff) | |
download | serd-1997ab63fb66a55341de0311e1b309419a32d724.tar.gz serd-1997ab63fb66a55341de0311e1b309419a32d724.tar.bz2 serd-1997ab63fb66a55341de0311e1b309419a32d724.zip |
Fix various warnings and conversion issues
Diffstat (limited to 'tests/model_test.c')
-rw-r--r-- | tests/model_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/model_test.c b/tests/model_test.c index a6614ac1..aa3af753 100644 --- a/tests/model_test.c +++ b/tests/model_test.c @@ -606,7 +606,7 @@ static int test_triple_index_read(SerdWorld* world, const unsigned n_quads) { for (unsigned i = 0; i < 6; ++i) { - SerdModel* model = serd_model_new(world, (1 << i)); + SerdModel* model = serd_model_new(world, (1u << i)); generate(world, model, n_quads, 0); assert(!test_read(world, model, 0, n_quads)); serd_model_free(model); @@ -619,7 +619,7 @@ static int test_quad_index_read(SerdWorld* world, const unsigned n_quads) { for (unsigned i = 0; i < 6; ++i) { - SerdModel* model = serd_model_new(world, (1 << i) | SERD_INDEX_GRAPHS); + SerdModel* model = serd_model_new(world, (1u << i) | SERD_INDEX_GRAPHS); const SerdNode* graph = uri(world, 42); generate(world, model, n_quads, graph); assert(!test_read(world, model, graph, n_quads)); |