Subject: Re: 64bit issues
To: Berndt Josef Wulf <wulf@dingo.ping.net.au>
From: Todd Vierling <tv@pobox.com>
List: port-alpha
Date: 12/18/1999 13:15:15
On Sat, 18 Dec 1999, Berndt Josef Wulf wrote:
: One of the applications used here doesn't seem to be 64bit aware as it
: casts pointers to integer. Would it be save to use size_t instead?
It would be safest never to try to encode a pointer into an integer. A
pointer is a pointer, and should not be interpreted as a number if such can
be avoided.
However, ptrdiff_t is defined to be an integer the size of a pointer, and
standards-compliant systems should define this if <stddef.h> is included (or
any standard header such as stdio.h, string.h, etc.).
--
-- Todd Vierling (tv@pobox.com)