On Thu, Mar 30, 2006 at 04:23:41PM +0400, Serge Belyshev wrote:
>                     ^^^^^^
> Typical 32bit BUG. You forgot to prototype getfoo(), so it become
> "int getfoo (void)" by default. "int" is 32 bit on amd64, but
> pointer is 64 bit, so you are calling printf() with truncated
> to 32bit pointer. Use -Wall to detect these errors:

Ouch.  Thanks :)

-- 
Robert Millan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to