----Original Message---- >From: Nathan Sidwell >Sent: 11 July 2005 16:15
> c99 6.5 para 5 (overflow is undefined) Have I got an old draft or something, or is that the paragraph that begins "If an _exceptional_ _condition_ occurs ..." ? > I cannot find, in c99, a statement that all unsigned arithmetic obeys > modulo laws -- only that integral conversions to them do. Like I say, I'm not sure exactly what draft/version/spec I have here in front of me, except that it says "ISO/IEC 9899:1999 (E)" at the top of each page, but I've got a para 9 in 6.2.5 that says " ... A computation involving unsigned operands can never overflow, because a result that cannot be represented by the resulting unsigned integer type is reduced modulo the number that is one greater than the largest value that can be represented by the resulting type." cheers, DaveK -- Can't think of a witty .sigline today....