Commit 941be8d8 authored by Ken Martin's avatar Ken Martin

Try to shut up warning

Try to shut up a warning while accomplishing the same goal
parent d12a9fa9
......@@ -639,11 +639,11 @@ void vtkFreeTypeTools::MapTextPropertyToId(vtkTextProperty *tprop,
{
angle += 3600;
}
// We really should not use more than 12 bits
assert(angle > 0 && (angle & 0xfffff000) == 0);
angle <<= bits;
// We really should not use more than 32 bits
vtkIdType merged = (bold | italic | angle);
assert(merged <= std::numeric_limits<vtkTypeUInt32>::max());
// Now final id
*id |= merged;
......
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