lua-users home
lua-l archive

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


>>>>> "MB" == Miles Bader <miles.bader@necel.com> 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
completely.

-- 
Yours sincerely, Eugeny.
Doctor Web, Ltd. http://www.drweb.com
+79119997425