commit | 17068938ce5544ec3728402abd39bf3c55aec113 | [log] [tgz] |
---|---|---|
author | Mark Adler <madler@alumni.caltech.edu> | Sat Aug 18 17:59:50 2012 -0700 |
committer | Mark Adler <madler@alumni.caltech.edu> | Sat Aug 18 18:07:26 2012 -0700 |
tree | e366e8de99ddad7b53231d27bb797bd608ccbfce | |
parent | 3d9df6ecf83a41a3990fbff5c276f854d158e8ad [diff] |
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.