aboutsummaryrefslogtreecommitdiff
path: root/deflate.c
diff options
context:
space:
mode:
Diffstat (limited to 'deflate.c')
-rw-r--r--deflate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/deflate.c b/deflate.c
index edea7e5..4b804e6 100644
--- a/deflate.c
+++ b/deflate.c
@@ -1671,10 +1671,10 @@ local block_state deflate_stored(deflate_state *s, int flush) {
1671 _tr_stored_block(s, (char *)0, 0L, last); 1671 _tr_stored_block(s, (char *)0, 0L, last);
1672 1672
1673 /* Replace the lengths in the dummy stored block with len. */ 1673 /* Replace the lengths in the dummy stored block with len. */
1674 s->pending_buf[s->pending - 4] = len; 1674 s->pending_buf[s->pending - 4] = (Bytef)len;
1675 s->pending_buf[s->pending - 3] = len >> 8; 1675 s->pending_buf[s->pending - 3] = (Bytef)(len >> 8);
1676 s->pending_buf[s->pending - 2] = ~len; 1676 s->pending_buf[s->pending - 2] = (Bytef)~len;
1677 s->pending_buf[s->pending - 1] = ~len >> 8; 1677 s->pending_buf[s->pending - 1] = (Bytef)(~len >> 8);
1678 1678
1679 /* Write the stored block header bytes. */ 1679 /* Write the stored block header bytes. */
1680 flush_pending(s->strm); 1680 flush_pending(s->strm);