[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Warning with Lua 5.1.3 sources (gcc -pedantic)
- From: eugeny gladkih <john@...>
- Date: Thu, 13 Mar 2008 11:44:55 +0300
>>>>> "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