----Original Message---- >From: Nicholas Nethercote >Sent: 11 July 2005 15:59
> Hi, > > There was recently a very long thread about the overflow behaviour of > signed integers in C. Apparently this is undefined according to the C > standard. I searched the standard on this matter, and while I did find > some paragraphs that described how unsigned integers must wrap around upon > overflow, I couldn't find anything explicit about signed integers. Anything not defined is undefined, by definition! > Can someone point me to the relevant part(s) of the standard? :) I can only point you at the whole thing, where it doesn't define it anywhere. See also 3.4.3/3, and H.2.2. cheers, DaveK -- Can't think of a witty .sigline today....