Skip to content

Commit 0f89e15

Browse files
committed
Warning fix: MSVC sign comparisonm warning when algorithm included in 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
1 parent 3c9d65d commit 0f89e15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_cases/runtime/agent/host_reduction/test_transform_reduce.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ TEST_F(HostReductionTest, CustomTransformReduceFloat) {
4848
std::mt19937_64 rd; // Seed does not matter
4949
std::uniform_real_distribution <float> dist(FLT_MIN, FLT_MAX);
5050
std::array<float, TEST_LEN> in;
51-
std::array<int, TEST_LEN> inTransform;
51+
std::array<uint32_t, TEST_LEN> inTransform;
5252
for (unsigned int i = 0; i < TEST_LEN; i++) {
5353
AgentVector::Agent instance = ms->population->at(i);
5454
in[i] = dist(rd);

0 commit comments

Comments
 (0)