]> git.lizzy.rs Git - zlib.git/commit
Don't need to emit an empty fixed block when changing parameters.
authorMark Adler <madler@alumni.caltech.edu>
Sat, 3 Dec 2016 16:29:57 +0000 (08:29 -0800)
committerMark Adler <madler@alumni.caltech.edu>
Sun, 4 Dec 2016 15:48:47 +0000 (07:48 -0800)
commitc5ee34c28a9144b1b5a5021d05ed29940c53010c
tree2b524d836c87f3693a60fd5a33a361d04f1f66f1
parent123f9cfaf7730dcc52c380eaf04c15dc3e0b15f8
Don't need to emit an empty fixed block when changing parameters.

gzsetparams() was using Z_PARTIAL_FLUSH when it could use Z_BLOCK
instead. This commit uses Z_BLOCK, which avoids emitting an
unnecessary ten bits into the stream.
gzwrite.c