attempt to fix warning on type conversion

This commit is contained in:
Li-Ta Lo 2017-04-20 08:54:09 -06:00
parent 897b2f0f63
commit 22d0e35521

@ -1352,7 +1352,7 @@ private:
VTKM_TEST_ASSERT(valuesOut.GetNumberOfValues() == expectedLength,
"Got wrong number of output values");
for (auto i= 0; i < expectedLength; i++) {
for (std::size_t i = 0; i < expectedLength; i++) {
const vtkm::Id v = valuesOut.GetPortalConstControl().Get(i);
VTKM_TEST_ASSERT(expectedValues[i] == v, "Incorrect scanned value");
}
@ -1365,7 +1365,7 @@ private:
const vtkm::Id inputLength = ARRAY_SIZE;
std::vector<vtkm::Id> inputKeys(inputLength);
for (int i = 0; i < ARRAY_SIZE; i++) {
for (vtkm::Id i = 0; i < ARRAY_SIZE; i++) {
if (i % 100 < 98)
inputKeys[i] = i / 100;
else
@ -1375,7 +1375,7 @@ private:
const vtkm::Id expectedLength = ARRAY_SIZE;
std::vector<vtkm::Id> expectedValues(expectedLength);
for (auto i = 0; i < ARRAY_SIZE; i++) {
for (std::size_t i = 0; i < ARRAY_SIZE; i++) {
if (i % 100 < 98)
expectedValues[i] = 1 + i % 100;
else
@ -1391,7 +1391,7 @@ private:
VTKM_TEST_ASSERT(valuesOut.GetNumberOfValues() == expectedLength,
"Got wrong number of output values");
for (auto i= 0; i < expectedLength; i++) {
for (std::size_t i = 0; i < expectedLength; i++) {
const vtkm::Id v = valuesOut.GetPortalConstControl().Get(i);
VTKM_TEST_ASSERT(expectedValues[i] == v, "Incorrect scanned value");
}
@ -1416,7 +1416,7 @@ private:
Algorithm::ScanInclusiveByKey(keys, values, valuesOut);
VTKM_TEST_ASSERT(valuesOut.GetNumberOfValues() == expectedLength,
"Got wrong number of output values");
for (auto i= 0; i < expectedLength; i++) {
for (std::size_t i= 0; i < expectedLength; i++) {
const vtkm::Id v = valuesOut.GetPortalConstControl().Get(i);
VTKM_TEST_ASSERT(expectedValues[i] == v, "Incorrect scanned value");
}
@ -1471,7 +1471,7 @@ private:
VTKM_TEST_ASSERT(valuesOut.GetNumberOfValues() == expectedLength,
"Got wrong number of output values");
for (auto i= 0; i < expectedLength; i++) {
for (std::size_t i = 0; i < expectedLength; i++) {
const vtkm::Id v = valuesOut.GetPortalConstControl().Get(i);
VTKM_TEST_ASSERT(expectedValues[i] == v, "Incorrect scanned value");
}
@ -1485,7 +1485,7 @@ private:
const vtkm::Id inputLength = ARRAY_SIZE;
std::vector<vtkm::Id> inputKeys(inputLength);
for (int i = 0; i < ARRAY_SIZE; i++) {
for (std::size_t i = 0; i < ARRAY_SIZE; i++) {
if (i % 100 < 98)
inputKeys[i] = i / 100;
else
@ -1496,7 +1496,7 @@ private:
const vtkm::Id expectedLength = ARRAY_SIZE;
std::vector<vtkm::Id> expectedValues(expectedLength);
for (auto i = 0; i < ARRAY_SIZE; i++) {
for (std::size_t i = 0; i < ARRAY_SIZE; i++) {
if (i % 100 < 98)
expectedValues[i] = init + i % 100;
else
@ -1512,7 +1512,7 @@ private:
VTKM_TEST_ASSERT(valuesOut.GetNumberOfValues() == expectedLength,
"Got wrong number of output values");
for (auto i= 0; i < expectedLength; i++) {
for (std::size_t i= 0; i < expectedLength; i++) {
const vtkm::Id v = valuesOut.GetPortalConstControl().Get(i);
VTKM_TEST_ASSERT(expectedValues[i] == v, "Incorrect scanned value");
}
@ -1540,7 +1540,7 @@ private:
VTKM_TEST_ASSERT(valuesOut.GetNumberOfValues() == expectedLength,
"Got wrong number of output values");
for (auto i= 0; i < expectedLength; i++) {
for (std::size_t i= 0; i < expectedLength; i++) {
const vtkm::Id v = valuesOut.GetPortalConstControl().Get(i);
VTKM_TEST_ASSERT(expectedValues[i] == v, "Incorrect scanned value");
}