Commit 080a7f72 authored by Zack Galbreath's avatar Zack Galbreath
Browse files

resolve new warning

This commit eliminates the following warning:
  warning C4018: '<' : signed/unsigned mismatch

Change-Id: I3dc5f506e5b08ea6365d71487c5b39364faabec3
parent f02476b2
...@@ -741,7 +741,8 @@ void vtkAbstractArray::UpdateDiscreteValueSet( ...@@ -741,7 +741,8 @@ void vtkAbstractArray::UpdateDiscreteValueSet(
vtkIdType numberOfBlocks = vtkIdType numberOfBlocks =
numberOfSampleTuples / blockSize + numberOfSampleTuples / blockSize +
(numberOfSampleTuples % blockSize ? 1 : 0); (numberOfSampleTuples % blockSize ? 1 : 0);
if (numberOfBlocks * blockSize < 2 * this->MaxDiscreteValues) if (static_cast<unsigned int>(numberOfBlocks * blockSize) <
2 * this->MaxDiscreteValues)
{ {
numberOfBlocks = numberOfBlocks =
2 * this->MaxDiscreteValues / blockSize + 2 * this->MaxDiscreteValues / blockSize +
......
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