0 or 0L for empty pointers?

David Faure faure at kde.org
Wed Jun 21 09:18:47 BST 2006


On Tuesday 20 June 2006 23:15, Michael Buesch wrote:
> On Tuesday 20 June 2006 20:02, Friedrich W. H. Kossebau wrote:
> > IIRC it was something with sizeof(long)==sizeof(void*) not always true. Any 
> > experts?
> 
> sizeof(long)==sizeof(void*) is an assumption in the linux kernel, at least.
> So it is true for all archs which are supported by linux.
> I don't know if there are archs supported by KDE for which this is not
> true, though.

I was told that this assumption doesn't hold on Windows-64bit.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).





More information about the kde-core-devel mailing list