On Fri, Sep 09, 2005 at 09:16:04AM +0530, Ganesan Rajagopal wrote: > Kurt Roeckx wrote: > > >It looks like the patch was only partially applied? > > > >Anyway, please do not cast a pointer to either an int or a long. > >Cast it to an intptr_t if you have to, but you should be able to > >avoid that too. > Thanks. But how do you give a printf format argument for intptr_t?
You shouldn't. You passed an integer to it, so extract an integer from the va_list. You could cast it back to an int if you want to. If you really want to print an intptr_t, <inttypes.h> defines a PRIdPTR you can use to print an intptr_t, something like: printf("%" PRIdPTR "\n", ptr); Kurt -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]