|
From: | Felix Nawothnig |
Subject: | Re: [Tinycc-devel] casting bug? |
Date: | Mon, 11 Jul 2005 22:12:45 +0200 |
User-agent: | Mozilla Thunderbird 1.0.2 (X11/20050317) |
Dave Dodge wrote:
The standard definitely does not guarantee that a null pointer is the same as all-bits-zero. There have been a few real implementations that used nonzero bits.
So? Casting takes care of that in our case, the only way to get the real NULL representation is by doing:
void *p = NULL; int i = *(int *)&p; Felix
[Prev in Thread] | Current Thread | [Next in Thread] |