diff options
author | FWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2012-05-27 09:39:31 +0000 |
---|---|---|
committer | FWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2012-05-27 09:39:31 +0000 |
commit | 03b1d6b74d13dd51a53d2531becb4137b96fa1ed (patch) | |
tree | 7268e27a4f905c0972c738016758bd1a97deae37 /zlib/trees.c | |
parent | e13cda27515a6a528a515e41ddd97a116bf80da3 (diff) | |
download | starshatter-03b1d6b74d13dd51a53d2531becb4137b96fa1ed.zip starshatter-03b1d6b74d13dd51a53d2531becb4137b96fa1ed.tar.gz starshatter-03b1d6b74d13dd51a53d2531becb4137b96fa1ed.tar.bz2 |
A few things MSVC's analyzer found.
Diffstat (limited to 'zlib/trees.c')
-rw-r--r-- | zlib/trees.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zlib/trees.c b/zlib/trees.c index 26f3cf1..e968035 100644 --- a/zlib/trees.c +++ b/zlib/trees.c @@ -535,6 +535,7 @@ local void gen_bitlen(s, desc) /* Find the first bit length which could increase: */
do {
bits = max_length-1;
+#pragma warning(suppress: 6385)
while (s->bl_count[bits] == 0) bits--;
s->bl_count[bits]--; /* move one leaf down the tree */
s->bl_count[bits+1] += 2; /* move one overflow item as its brother */
@@ -551,6 +552,7 @@ local void gen_bitlen(s, desc) * from 'ar' written by Haruhiko Okumura.)
*/
for (bits = max_length; bits != 0; bits--) {
+#pragma warning(suppress: 6385)
n = s->bl_count[bits];
while (n != 0) {
m = s->heap[--h];
|