Skip to content
Snippets Groups Projects
Commit 9fa3b512 authored by Stefan Zellmann's avatar Stefan Zellmann
Browse files

Fix two warnings in unit test

parent 1b928a69
No related branches found
No related tags found
No related merge requests found
......@@ -55,12 +55,11 @@ static void ComputeNumberOfCells(
vtkUniformGridAMRDataIterator* iter =
vtkUniformGridAMRDataIterator::SafeDownCast(amr->NewIterator());
iter->SkipEmptyNodesOn();
int numTotal = 0;
for (iter->GoToFirstItem(); !iter->IsDoneWithTraversal(); iter->GoToNextItem())
{
vtkUniformGrid* grid = vtkUniformGrid::SafeDownCast(iter->GetCurrentDataObject());
vtkIdType num = grid->GetNumberOfCells();
if (level == iter->GetCurrentLevel())
if (level == (int)iter->GetCurrentLevel())
{
for (vtkIdType i = 0; i < num; i++)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment