lua-users home
lua-l archive

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

>>>>> "MB" == Miles Bader <> writes:

 MB> To get around the warning in C though, you could just use an
 MB> intermediary integer type, hopefully something long enough to hold a
 MB> pointer, e.g., intptr_t:

sometimes it's impossible to find such integer type don't using
autoconf or so. the union is convient enough. casting to the integer
and back to the pointer is not better in other meaning, too. the
pointer to the data and the pointer to the code could be different

Yours sincerely, Eugeny.
Doctor Web, Ltd.