Skip to content

Commit

Permalink
Warning fix: MSVC sign comparisonm warning when algorithm included in…
Browse files Browse the repository at this point in the history
… test_transform_reduce.cu

std::count was comparing a uint32_t against int elements in a std::array.

Warning only issued by msvc when <algorithm> has been included as part of a lint fix
  • Loading branch information
ptheywood committed Nov 21, 2024
1 parent 3c9d65d commit 0f89e15
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ TEST_F(HostReductionTest, CustomTransformReduceFloat) {
std::mt19937_64 rd; // Seed does not matter
std::uniform_real_distribution <float> dist(FLT_MIN, FLT_MAX);
std::array<float, TEST_LEN> in;
std::array<int, TEST_LEN> inTransform;
std::array<uint32_t, TEST_LEN> inTransform;
for (unsigned int i = 0; i < TEST_LEN; i++) {
AgentVector::Agent instance = ms->population->at(i);
in[i] = dist(rd);
Expand Down

0 comments on commit 0f89e15

Please sign in to comment.