0 or 0L for empty pointers?

Michael Buesch mb at bu3sch.de
Tue Jun 20 22:15:59 BST 2006


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.

Generally said, the assumption is not 100% waterproof.
But IMHO it queues in the same row with the assumption that there are only
bigendian and littleendian machines out there.

-- 
Greetings Michael.




More information about the kde-core-devel mailing list