From d5bb99b4e446ccdb790d13b94011ebcca18b0932 Mon Sep 17 00:00:00 2001 From: Lewis Baker Date: Mon, 6 Aug 2018 23:27:46 -0700 Subject: [PATCH] Fix type truncation warning under 32-bit platforms. --- test/static_thread_pool_tests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/static_thread_pool_tests.cpp b/test/static_thread_pool_tests.cpp index 8122057..bed9cc4 100644 --- a/test/static_thread_pool_tests.cpp +++ b/test/static_thread_pool_tests.cpp @@ -258,7 +258,7 @@ TEST_CASE("for_each_async") << " took " << std::chrono::duration_cast(end - start).count() << "us" << std::endl; - for (std::uint64_t i = 0; i < 1'000'000; ++i) + for (std::size_t i = 0; i < 1'000'000; ++i) { CHECK(values[i] == collatz_distance(i + 1)); }