Please sign in to comment.
INT_TO_POINTER macros: make 64-bit compatible
The INT_TO_POINTER and POINTER_TO_INT macros must accommodate larger pointers on 64-bit systems that don't fit into an int. In the INT_TO_POINTER case, we have to use an extra cast to intptr_t as an intermediate widening type to avoid complaints from the compiler when converting from an int. This change makes no difference on 32-bit systems. Signed-off-by: Nicolas Pitre <firstname.lastname@example.org>
- Loading branch information...