From f47c87df70548cbe47781a862fefe55b3c4035df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20G=C3=BCndling?= Date: Mon, 20 May 2024 16:41:41 +0200 Subject: [PATCH] wip --- test/bitvec_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/bitvec_test.cc b/test/bitvec_test.cc index c7baacdc..c6f433d4 100644 --- a/test/bitvec_test.cc +++ b/test/bitvec_test.cc @@ -115,7 +115,7 @@ TEST_CASE("bitvec parallel") { auto bits = std::vector{}; bits.resize(b.size() * 0.2); std::generate(begin(bits), end(bits), [&]() { - auto x = get_random_number() % b.size(); + auto x = static_cast(get_random_number() % b.size()); b.set(x, true); return x; });