Commit c46f50c5 authored by Dave DeMarle's avatar Dave DeMarle
Browse files

fix a compilation warning

Change-Id: I472c993f7d14c756815110ae9bdc34a0b61d6890
parent f8c5c678
...@@ -257,7 +257,7 @@ int TestValuePainter(int argc, char* argv[]) ...@@ -257,7 +257,7 @@ int TestValuePainter(int argc, char* argv[])
unsigned char *ptr = static_cast<unsigned char*>(ar->GetVoidPointer(0)); unsigned char *ptr = static_cast<unsigned char*>(ar->GetVoidPointer(0));
std::set<double> found; std::set<double> found;
double value; double value;
for (unsigned int i = 0; i < id->GetNumberOfPoints(); i++) for (int i = 0; i < id->GetNumberOfPoints(); i++)
{ {
vtkValuePainter::ColorToValue(ptr, minmax[0], scale, value); vtkValuePainter::ColorToValue(ptr, minmax[0], scale, value);
if (found.find(value)==found.end()) if (found.find(value)==found.end())
...@@ -270,8 +270,8 @@ int TestValuePainter(int argc, char* argv[]) ...@@ -270,8 +270,8 @@ int TestValuePainter(int argc, char* argv[])
<< value << endl; << value << endl;
} }
ptr+=3; ptr+=3;
} }
std::set<double>::iterator it; std::set<double>::iterator it;
double min = VTK_DOUBLE_MAX; double min = VTK_DOUBLE_MAX;
double max = VTK_DOUBLE_MIN; double max = VTK_DOUBLE_MIN;
......
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