em_inflate.c

Fast, small, in-memory inflate (zlib, deflate and gzip decompression)
git clone git://git.finwo.net/lib/em_inflate.c
Log | Files | Refs | README | LICENSE

commit c4c582078422ce110d3c7f19ab64144d54be1f17
parent 93d387b7680be51d1ee1ff51bf1f886c91f24f1d
Author: Emmanuel Marty <emmanuel@fgl.com>
Date:   Wed, 12 Oct 2022 11:45:02 +0200

Comment unused code out
Diffstat:
Mlib/em_inflate.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/em_inflate.c b/lib/em_inflate.c @@ -1162,7 +1162,7 @@ size_t em_inflate(const void *pCompressedData, size_t nCompressedDataSize, unsig nStoredCheckSum |= ((unsigned int)pCurCompressedData[2]) << 16; nStoredCheckSum |= ((unsigned int)pCurCompressedData[3]) << 24; if (nStoredCheckSum != nCheckSum) return -1; - pCurCompressedData += 4; + /* pCurCompressedData += 4; */ break; case EM_INFLATE_CHECKSUM_ZLIB: /* zlib - big endian adler32 */ @@ -1172,7 +1172,7 @@ size_t em_inflate(const void *pCompressedData, size_t nCompressedDataSize, unsig nStoredCheckSum |= ((unsigned int)pCurCompressedData[2]) << 8; nStoredCheckSum |= ((unsigned int)pCurCompressedData[3]); if (nStoredCheckSum != nCheckSum) return -1; - pCurCompressedData += 4; + /* pCurCompressedData += 4; */ break; default: /* None */