[vtkusers] Possible compiler issue in vtkMarchingSquares.cxx

Benjamin King benjaminking at web.de
Thu Nov 21 07:18:43 EST 2002


Hi all,

I found the following line in vtkMarchingSquares which could be 
optimized away by some compiler although it makes perfect sense if not:

   estimatedSize = estimatedSize / 1024 * 1024; //multiple of 1024

If this is a potential problem, you could substitute it by

   estimatedSize &= ~1023;

cu,
   Benjamin

-- 
There are only 10 types of people in this world:
Those who understand binary, and those who don't.





More information about the vtkusers mailing list