<div dir="ltr"><div>Hi!</div><div><br></div>On building VTK with UBSan, and running the following test:<div><br></div><div>`ctest -VV -R vtkInteractionWidgetsCxx-TestPlaneWidget`</div><div><br></div><div>UBSan produces runtime errors due to the casting done in lines 282 --- 284, similar to this:<br><br><div>runtime error: value -1.81708e+299 is outside the range of representable values of type 'long long'<br><br></div></div><div>I believe one way to solve the problem would be to do something like the following:<br></div><div><a href="https://gitlab.kitware.com/m-chaturvedi/vtk/commit/4df07e6d3b9bc9250bab74287fb2df3fe1d2098d">https://gitlab.kitware.com/m-chaturvedi/vtk/commit/4df07e6d3b9bc9250bab74287fb2df3fe1d2098d</a><br><br>But this increases the test's time significantly.  </div><div><br></div><div>I was wondering if someone could propose a proper fix.  </div><div><br></div><div>vtkTypeId -- <a href="https://gitlab.kitware.com/m-chaturvedi/vtk/blob/master/Common/Core/vtkType.h#L328">https://gitlab.kitware.com/m-chaturvedi/vtk/blob/master/Common/Core/vtkType.h#L328</a><br></div><div><br></div><div>Thanks,</div><div>Mmanu</div><div><br></div><div><br></div></div>