discuss-gnustep
[Top][All Lists]
Advanced

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

Re: casting ints to pointers


From: Sebastian Reitenbach
Subject: Re: casting ints to pointers
Date: Wed, 28 Mar 2012 12:35:10 +0200

David Chisnall <theraven@sucs.org> wrote: 
> On 28 Mar 2012, at 09:23, Sebastian Reitenbach wrote:
> 
> > Then the warnings will be gone, and it all still seems to work. But I'm
unsure
> > whether this generally a good or silly idea.
> 
> Technically, it's a bad idea, but in practice it's fine.  It will break on all
platforms where int is bigger than void*, which to the best of my knowledge is
this list:
> 
> - 

OK, got the point, it seems I was on the right track already.


> 
> You need to be a bit more careful going the other way, because void* is quite
often bigger than int.

ah, yep, OK.

thanks,
Sebastian


> 
> David
> 
> -- Sent from my Apple II




reply via email to

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