diff --git a/vtkm/io/reader/VTKDataSetReaderBase.h b/vtkm/io/reader/VTKDataSetReaderBase.h index b69831f82..9dbcc1239 100644 --- a/vtkm/io/reader/VTKDataSetReaderBase.h +++ b/vtkm/io/reader/VTKDataSetReaderBase.h @@ -603,7 +603,8 @@ protected: // special handling if(dataType == "string") { - for(int i = 0; i < numComponents * numElements; ++i) + const vtkm::Id stringCount = static_cast(numComponents * numElements); + for(vtkm::Id i = 0; i < stringCount; ++i) { std::string trash; this->DataFile->Stream >> trash;