From 5ffe615828c957b2d83398cf1155914148888ecc Mon Sep 17 00:00:00 2001 From: Kim Walisch Date: Mon, 12 Feb 2024 18:30:09 +0100 Subject: [PATCH] Fix MSVC warning --- src/app/stressTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/stressTest.cpp b/src/app/stressTest.cpp index f666587dc..914bbf0a2 100644 --- a/src/app/stressTest.cpp +++ b/src/app/stressTest.cpp @@ -193,9 +193,9 @@ std::string getStartString(uint64_t start) /// different threads. (dist % 2 == 1) ensures that we /// get both even and odd start indexes. /// -int getStartIndex(int threadId, - int threads, - const Array& primeCounts) +uint64_t getStartIndex(int threadId, + int threads, + const Array& primeCounts) { uint64_t dist = primeCounts.size() / threads; dist += (dist % 2 == 0);