#define SILC_PTR_TO_64 ...
Type casts a pointer's value into a 64-bit integer. Use this to avoid compiler warnings when type casting pointers to integers of different size.
#if SILC_SIZEOF_VOID_P < 8 #define SILC_PTR_TO_64(_ptr__) ((SilcUInt64)((SilcUInt32)(_ptr__))) #else #define SILC_PTR_TO_64(_ptr__) ((SilcUInt64)((SilcUInt64)(_ptr__))) #endif