[vtkusers] Question about 64-bit ids and long

Nick Gnedin gnedin at fnal.gov
Sat Sep 20 12:09:58 EDT 2008


I noticed that in vtkIdType.h (VTK 5.2.0) a choice of long as a 64-bit
id is manually blocked ( && 0 at the end of line 00235). Does anyone
know why? I see nothing wrong with using long as a vtkIdType on a
64-bit machine. In fact, vtkIdType should always be long - then the id
type is always consistent with the address space of the hardware.

Nick Gnedin


vtkIdType.h:
00233 #define VTK_HAS_ID_TYPE
00234 #ifdef VTK_USE_64BIT_IDS
00235 # if defined(VTK_SIZEOF_LONG) && VTK_SIZEOF_LONG == 8 && 0
00236 typedef long vtkIdType;



More information about the vtkusers mailing list