Fix type conversion warning when size_t differs from vtkm::Id.

This commit is contained in:
Allison Vacanti 2019-09-12 13:56:43 -04:00
parent 1d9f6b37cf
commit 7148ab3425

@ -654,7 +654,7 @@ void ContourTreeMesh<FieldType>::mergeWith(ContourTreeMesh<FieldType>& other)
std::inplace_merge(
neighboursBegin, neighboursBegin + combinedOtherStartIndexPortal.Get(vtx), neighboursEnd);
auto it = std::unique(neighboursBegin, neighboursEnd);
combinedOtherStartIndexPortal.Set(vtx, neighboursEnd - it);
combinedOtherStartIndexPortal.Set(vtx, static_cast<vtkm::Id>(neighboursEnd - it));
while (it != neighboursEnd)
*(it++) = NO_SUCH_ELEMENT;
}