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:  <[EMAIL PROTECTED]>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <[EMAIL PROTECTED]>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
THUS plc            |                            |


Reply via email to