Skip to content

Commit

Permalink
Fix MSVC warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kimwalisch committed Feb 12, 2024
1 parent 55c9397 commit 5ffe615
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/stressTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint64_t, 100>& primeCounts)
uint64_t getStartIndex(int threadId,
int threads,
const Array<uint64_t, 100>& primeCounts)
{
uint64_t dist = primeCounts.size() / threads;
dist += (dist % 2 == 0);
Expand Down

0 comments on commit 5ffe615

Please sign in to comment.