"John E. Malmberg" <[EMAIL PROTECTED]> writes: > A mask is needed because of an extension that most C compilers have > that allow ((unsigned int) -1) to be tested as being less than 0 > through operand promotion.
The C standard requires (unsigned int) -1 to have the same type and value as UINT_MAX. A C compiler that evaluates ((unsigned int) -1) < 0 as true is buggy. -- Ben Pfaff http://benpfaff.org
