0 or 0L for empty pointers?
Brad Hards
bradh at frogmouth.net
Wed Jun 21 10:07:35 BST 2006
On Wednesday 21 June 2006 07:15 am, Michael Buesch wrote:
> 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'm not sure you can safely assume that userspace and kernel space are the
same. I vaguely remember that sparc or mips has 64 bit kernelspace and 32 bit
userspace.
Brad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060621/c3ac7b96/attachment.sig>
More information about the kde-core-devel
mailing list