aboutsummaryrefslogtreecommitdiff
path: root/deflate.c
diff options
context:
space:
mode:
Diffstat (limited to 'deflate.c')
-rw-r--r--deflate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/deflate.c b/deflate.c
index cd538b8..4a512e1 100644
--- a/deflate.c
+++ b/deflate.c
@@ -752,7 +752,8 @@ uLong ZEXPORT deflateBound(strm, sourceLen)
752 752
753 /* if not default parameters, return one of the conservative bounds */ 753 /* if not default parameters, return one of the conservative bounds */
754 if (s->w_bits != 15 || s->hash_bits != 8 + 7) 754 if (s->w_bits != 15 || s->hash_bits != 8 + 7)
755 return (s->w_bits <= s->hash_bits ? fixedlen : storelen) + wraplen; 755 return (s->w_bits <= s->hash_bits && s->level ? fixedlen : storelen) +
756 wraplen;
756 757
757 /* default settings: return tight bound for that case -- ~0.03% overhead 758 /* default settings: return tight bound for that case -- ~0.03% overhead
758 plus a small constant */ 759 plus a small constant */