RE: [gtk-list] gpointer values



> Is it safe (or portable) to use GINT_TO_POINTER and
> GPOINTER_TO_INT with short values? Compiler
> is warning me "cast to pointer from integer of different
> size."

No problem AFAIK. pointers are at least 32 bits (on modern systems, I don't think you want to run it on a XT), a short is 16 bits.

regards,

Arjan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]