[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: source(builtin) and read(2)
From: |
Clive D.W. Feather |
Subject: |
Re: source(builtin) and read(2) |
Date: |
Mon, 2 Apr 2007 07:06:21 +0100 |
User-agent: |
Mutt/1.5.3i |
Paul Eggert said:
>> ptrdiff_t has to be able to hold the largest difference between two
>> pointers; it is a signed type.
>
> The C standard does not require this. It allows an implementation,
> for example, where size_t is 64 bits, ptrdiff_t is 32, and objects can
> be created with more than 2**32 bytes. The behavior is undefined
> if you subtract two pointers into a same object and the resulting
> value does not fit into ptrdiff_t. See section 6.5.6 of the standard.
True. My bad.
--
Clive D.W. Feather | Work: <address@hidden> | Tel: +44 20 8495 6138
Internet Expert | Home: <address@hidden> | Fax: +44 870 051 9937
Demon Internet | WWW: http://www.davros.org | Mobile: +44 7973 377646
THUS plc | |