Commit 1fb3bd99 authored by Zack Galbreath's avatar Zack Galbreath Committed by Code Review
Browse files

Merge topic 'fix_warning' into master

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