Avoid shift equal to bits in type (caused endless loop).
authorMark Adler <madler@alumni.caltech.edu>
Sun, 19 Aug 2012 00:59:50 +0000 (17:59 -0700)
committerMark Adler <madler@alumni.caltech.edu>
Sun, 19 Aug 2012 01:07:26 +0000 (18:07 -0700)
commit17068938ce5544ec3728402abd39bf3c55aec113
treee366e8de99ddad7b53231d27bb797bd608ccbfce
parent3d9df6ecf83a41a3990fbff5c276f854d158e8ad
Avoid shift equal to bits in type (caused endless loop).

Also clean up comparisons between different types, and some odd
indentation problems that showed up somehow.

A new endless loop was introduced by the clang compiler, which
apparently does odd things when the right operand of << is equal to
or greater than the number of bits in the type.  The C standard in
fact states that the behavior of << is undefined in that case.  The
loop was rewritten to use single-bit shifts.
examples/enough.c