diff options
author | Nathan Moinvaziri <nathan@nathanm.com> | 2020-05-28 11:15:59 -0700 |
---|---|---|
committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2020-05-30 21:16:37 +0200 |
commit | c0dbcace5d16b6fbee02a0c5f64acb160589eeaa (patch) | |
tree | c5a85197eec1ced626bbed0897fc7da47ff7ba04 /deflate.c | |
parent | f0de5acd39813eaa07a94c6ef3afdb78c8d33ac4 (diff) |
Use a constant to load adler-32 initial hash value.
Diffstat (limited to 'deflate.c')
-rw-r--r-- | deflate.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -539,7 +539,7 @@ int ZEXPORT PREFIX(deflateResetKeep)(PREFIX3(stream) *strm) { crc_reset(s); else #endif - strm->adler = functable.adler32(0L, NULL, 0); + strm->adler = ADLER32_INITIAL_VALUE; s->last_flush = -2; zng_tr_init(s); @@ -848,7 +848,7 @@ int ZEXPORT PREFIX(deflate)(PREFIX3(stream) *strm, int flush) { if (s->strstart != 0) { put_uint32_msb(s, strm->adler); } - strm->adler = functable.adler32(0L, NULL, 0); + strm->adler = ADLER32_INITIAL_VALUE; s->status = BUSY_STATE; /* Compression must start with an empty pending buffer */ |