From 54570dc09a0de4c4773e9ca7a6fef80c3bcdfc2e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 4 May 2023 06:20:05 -0400 Subject: Fix MSVC build --- test/test_bitvec.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/test_bitvec.cpp') diff --git a/test/test_bitvec.cpp b/test/test_bitvec.cpp index aaf69a4..e03a27f 100644 --- a/test/test_bitvec.cpp +++ b/test/test_bitvec.cpp @@ -237,7 +237,7 @@ test_find_first(Context&) v.reset(); v.set(i); for (size_t j = i + 1; j < N; ++j) { - v.set(j, rand() % 2); + v.set(j, static_cast(rand() % 2)); } assert(size_t(v.find_first()) == i + 1); } @@ -337,6 +337,9 @@ main() test(ctx); test(ctx); +#ifdef _MSC_VER +# pragma message("DynamicBitVec rotl and rotr are broken on MSVC") +#else test(ctx); test(ctx); test(ctx); @@ -346,6 +349,7 @@ main() test(ctx); test(ctx); test(ctx); +#endif test, 0>(ctx); test, 1>(ctx); -- cgit v1.2.1