gnustep-dev
[Top][All Lists]
Advanced

[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:
Hi,

in reference to:
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/Source/GSDisplayServer.m?r1=37026&r2=37533

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?

Riccardo

_______________________________________________
Gnustep-dev mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/gnustep-dev

reply via email to

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