SILC_32_TO_PTR

NAME

    #define SILC_32_TO_PTR(ptr)

DESCRIPTION

Type casts a 32-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_32_TO_PTR(_ival__) ((void *)((SilcUInt32)(_ival__)))
#else
#define SILC_32_TO_PTR(_ival__) ((void *)((SilcUInt64)(_ival__)))
#endif