Commit 85ff2106 authored by David Gobbi's avatar David Gobbi
Browse files

COMP: Fix warning on MSVC71 compiler.

Change-Id: I5b1fc99d02341d85f4be9c5d2fd9b49699f03577
parent e0db3ed9
......@@ -484,7 +484,8 @@ void vtkImageHistogramGenerateImage(
// find tallest peak in histogram
vtkIdType peak = 0;
for (int ix = 0; ix < nx; ++ix)
int ix;
for (ix = 0; ix < nx; ++ix)
{
vtkIdType c = histogram[ix];
peak = (peak >= c ? peak : c);
......@@ -517,7 +518,7 @@ void vtkImageHistogramGenerateImage(
}
double x = extent[0]*a;
int ix = static_cast<int>(x);
ix = static_cast<int>(x);
for (int i = extent[0]; i <= extent[1]; i++)
{
// use max of the original bins to compute new bin height
......
Supports Markdown
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