Commit ea4183d8 authored by Ben Boeckel's avatar Ben Boeckel Committed by Kitware Robot
Browse files

Merge topic 'mpas-reader-warnings-take-2'

5dc0db20

 vtkMPASReader: address remaining signed/unsigned warnings
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !4809
parents 989733f6 5dc0db20
......@@ -815,8 +815,8 @@ int vtkMPASReader::Internal::LoadCellVarDataImpl(int nc_var, vtkDataArray *array
if (!reader->ShowMultilayerView)
{
size_t k = reader->CellMap[j - reader->NumberOfCells - reader->CellOffset];
assert(j < array->GetNumberOfTuples());
assert(k < array->GetNumberOfTuples());
assert(j < static_cast<size_t>(array->GetNumberOfTuples()));
assert(k < static_cast<size_t>(array->GetNumberOfTuples()));
dataBlock[j] = dataBlock[k];
}
else
......@@ -826,7 +826,7 @@ int vtkMPASReader::Internal::LoadCellVarDataImpl(int nc_var, vtkDataArray *array
reader->MaximumNVertLevels;
// write data for one cell -- lowest level to highest
assert(i < array->GetNumberOfTuples());
assert(i < static_cast<size_t>(array->GetNumberOfTuples()));
assert(k + reader->MaximumNVertLevels <= static_cast<size_t>(array->GetNumberOfTuples()));
std::copy(dataBlock + k, dataBlock + k + reader->MaximumNVertLevels,
dataBlock + i);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment