[Top][All Lists]

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

Re: int vs. void pointer

From: Stefan Bidi
Subject: Re: int vs. void pointer
Date: Sun, 5 Jan 2014 17:23:57 -0500

I don't know of any platform where an int is larger than a pointer, so I think it is safe to do this. You should cast it to into first and the warning will disappear: return (int)win.

On Jan 5, 2014 2:45 PM, "Riccardo Mottola" <address@hidden> wrote:

in reference to:

is it correct to get an int and return it as a void* ? I get a warning there.
I suppose int goes to void, not a pointer. perhaps the method shold accept a void* as a win?


Gnustep-dev mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]