|
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.
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
[Prev in Thread] | Current Thread | [Next in Thread] |