[vtkusers] Question about 64-bit ids and long

Mathieu Malaterre mathieu.malaterre at gmail.com
Mon Sep 22 02:54:30 EDT 2008


vtkIdType.h was last shipped with VTK 4.2:

http://public.kitware.com/cgi-bin/viewcvs.cgi/Common/vtkIdType.h?hideattic=0&view=log

2cts
-Mathieu

On Sat, Sep 20, 2008 at 6:09 PM, Nick Gnedin <gnedin at fnal.gov> wrote:
> 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;
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



-- 
Mathieu



More information about the vtkusers mailing list