vtkKdTree::GenerateRepresentationWholeSpace does 1 << -1
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
From: Sean McBride Date: Fri, Nov 21, 2014 at 11:46 AM Subject: [vtk-developers] Need help with a few clang analyzer warnings To: vtk-developers@vtk.org
Occasionally, I try to fix some of the hundreds of clang static analyzer warnings in VTK. Some are easy, some are false positives, and some are real problems that I don't know how to fix.
file: Common/DataModel/vtkKdTree.cxx line: 3188 method: vtkKdTree::GenerateRepresentationWholeSpace problem: the first time through the 'for' loop always does "1 << -1". You can't left shift by a negative count.