SILC_64_TO_PTR
NAME
#define SILC_64_TO_PTR ...
DESCRIPTION
Type casts a 64-bit integer value into a pointer. Use this to
avoid compiler warnings when type casting integers to pointers of
different size.
SOURCE
#if SILC_SIZEOF_VOID_P < 8
#define SILC_64_TO_PTR(_ival__) \
((void *)((SilcUInt32)((SilcUInt64)(_ival__) & (SilcUInt32)0xFFFFFFFFUL)))
#else
#define SILC_64_TO_PTR(_ival__) ((void *)((SilcUInt64)(_ival__)))
#endif
|