On Mon, Nov 25, 2002 at 04:39:23PM +0000, Nicholas Clark wrote:
> And we ought to make a generic "safe" version of the code for signed
> truncation that works for platforms that are any or all of the following
> holds
> 
> 1: no type of that size (eg Crays)
> 2: signed integer truncation (UTS) [and other OSes on S/390 processors?]
> 3: not 2s complement [no examples]

oops. forgot one:

4: nasal demons (Irix64)

(doing stuff on out of range signed values is undefined behaviour, IIRC)

Nicholas Clark

Reply via email to