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" <r...@gnu.org> 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 > Gnustep-dev@gnu.org > https://lists.gnu.org/mailman/listinfo/gnustep-dev >
_______________________________________________ Gnustep-dev mailing list Gnustep-dev@gnu.org https://lists.gnu.org/mailman/listinfo/gnustep-dev