aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_bitvec.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-09-16 16:27:19 -0400
committerDavid Robillard <d@drobilla.net>2022-09-16 22:31:06 -0400
commit8697e134aeac0318e6686d785113f0763cbc3c1c (patch)
tree86897017d682939a1faf586b5bb61a15f814387a /test/test_bitvec.cpp
parent49dab5622b31421eb6af84eae376d73fae1cd4a0 (diff)
downloadchilbert-8697e134aeac0318e6686d785113f0763cbc3c1c.tar.gz
chilbert-8697e134aeac0318e6686d785113f0763cbc3c1c.tar.bz2
chilbert-8697e134aeac0318e6686d785113f0763cbc3c1c.zip
Fix signed bitwise operator operands
Diffstat (limited to 'test/test_bitvec.cpp')
-rw-r--r--test/test_bitvec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_bitvec.cpp b/test/test_bitvec.cpp
index a0e8b5b..c123212 100644
--- a/test/test_bitvec.cpp
+++ b/test/test_bitvec.cpp
@@ -251,7 +251,7 @@ test_find_first(Context&)
v.reset();
v.set(i);
for (size_t j = i + 1; j < N; ++j) {
- v.set(j, rand() & 1);
+ v.set(j, rand() % 2);
}
assert(size_t(v.find_first()) == i + 1);
}