diff options
author | David Robillard <d@drobilla.net> | 2019-01-07 20:40:44 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-04-13 19:48:23 +0200 |
commit | 5d0befa7dd144fc242a96c8bfa4f9233306f2c21 (patch) | |
tree | 09a67d7abb84ec7a18121444dc57dbd11a5e215a /tests/model_test.c | |
parent | 5ff537bdaf77f0bd8bc7393f8315d91c220f939e (diff) | |
download | serd-5d0befa7dd144fc242a96c8bfa4f9233306f2c21.tar.gz serd-5d0befa7dd144fc242a96c8bfa4f9233306f2c21.tar.bz2 serd-5d0befa7dd144fc242a96c8bfa4f9233306f2c21.zip |
Fix MSVC warnings about integer literal conversions
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 952f8026..60dc4579 100644 --- a/tests/model_test.c +++ b/tests/model_test.c @@ -572,7 +572,7 @@ static int test_triple_index_read(SerdWorld* world, const size_t 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); @@ -585,7 +585,7 @@ static int test_quad_index_read(SerdWorld* world, const size_t 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)); |