On Sat, Feb 24, 2007 at 03:35:15PM -0800, Russ Allbery wrote:
> Writing a 32-bit value into the first half of a 64-bit variable (which is
> what happens when you pass a size_t * as an int * and then write to it)
> isn't guaranteed to get you anything useful regardless of how you
> initialize it beforehand.

But in practice, it _might_ work on little-endian platforms (assuming the
upper half was somehow initialized to be zero), which may very well explain
why this was only seen on Alpha.

Of course, it should have given a compiler warning on _any_ platform, but I
guess it just wasn't heeded in this case.

/* Steinar */
-- 
Homepage: http://www.sesse.net/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to