From 0d4a1bcd64c9ac6d37415dad56eca96db19f2aad Mon Sep 17 00:00:00 2001 From: Vitaly Puzrin Date: Wed, 19 Feb 2014 09:52:17 +0400 Subject: [PATCH] typo fixes --- lib/zlib/deflate.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/zlib/deflate.js b/lib/zlib/deflate.js index 5889c6d..6c62a62 100644 --- a/lib/zlib/deflate.js +++ b/lib/zlib/deflate.js @@ -1336,6 +1336,7 @@ function deflate(strm, flush) { (strm->next_in == Z_NULL && strm->avail_in != 0) || (s->status == FINISH_STATE && flush != Z_FINISH)) { ERR_RETURN(strm, Z_STREAM_ERROR); + if (strm->avail_out == 0) ERR_RETURN(strm, Z_BUF_ERROR); }*/ s.strm = strm; /* just in case */ @@ -1456,7 +1457,7 @@ function deflate(strm, flush) { } else if (flush !== c.Z_BLOCK) { /* FULL_FLUSH or SYNC_FLUSH */ - trees._tr_stored_block(s, 0, 0, 0); + trees._tr_stored_block(s, 0, 0, false); /* For a full flush, this empty block will be recognized * as a special marker by inflate_sync(). */