summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2012-08-18 17:59:50 -0700
committerMark Adler <madler@alumni.caltech.edu>2012-08-18 18:07:26 -0700
commit17068938ce5544ec3728402abd39bf3c55aec113 (patch)
treee366e8de99ddad7b53231d27bb797bd608ccbfce /test
parent3d9df6ecf83a41a3990fbff5c276f854d158e8ad (diff)
downloadzlib-17068938ce5544ec3728402abd39bf3c55aec113.tar.gz
zlib-17068938ce5544ec3728402abd39bf3c55aec113.tar.bz2
zlib-17068938ce5544ec3728402abd39bf3c55aec113.zip
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.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions