Commit e1e413fa authored by Sean McBride's avatar Sean McBride
Browse files

Fixed, again, a slightly incorrect assert

Fixes issue #17171.
parent 60a2e996
......@@ -553,7 +553,7 @@ inline vtkIdType vtkLinearIndexLookupMain(double v, const TableParameters & p)
// lut value, to avoid extra work in this very hot function.
// It should never be more than 1 off, assert to be sure.
index = static_cast<vtkIdType>(dIndex);
assert(index >= 0 && dIndex <= p.NumColors);
assert(index >= 0 && index <= p.NumColors);
}
return index;
......
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