diff options
-rw-r--r-- | meson.build | 1 | ||||
-rw-r--r-- | test/btree_test.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 25ff399..ded34b2 100644 --- a/meson.build +++ b/meson.build @@ -111,6 +111,7 @@ if get_option('strict') '/wd4710', # function not inlined '/wd4711', # function selected for automatic inline expansion '/wd4777', # format string and argument mismatch + '/wd4800', # implicit conversion to bool '/wd4820', # padding added after construct '/wd5045', # will insert Spectre mitigation for memory load ] diff --git a/test/btree_test.c b/test/btree_test.c index 4d875f3..7738397 100644 --- a/test/btree_test.c +++ b/test/btree_test.c @@ -45,7 +45,7 @@ unique_rand(size_t i) } const uint64_t residue = ((uint64_t)i * i) % prime; - return (i <= prime / 2) ? residue : prime - residue; + return (uintptr_t)((i <= prime / 2) ? residue : prime - residue); } static int |