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