summaryrefslogtreecommitdiff
path: root/deflate.c
diff options
context:
space:
mode:
authorNathan Moinvaziri <nathan@nathanm.com>2020-05-28 11:15:59 -0700
committerHans Kristian Rosbach <hk-github@circlestorm.org>2020-05-30 21:16:37 +0200
commitc0dbcace5d16b6fbee02a0c5f64acb160589eeaa (patch)
treec5a85197eec1ced626bbed0897fc7da47ff7ba04 /deflate.c
parentf0de5acd39813eaa07a94c6ef3afdb78c8d33ac4 (diff)
Use a constant to load adler-32 initial hash value.
Diffstat (limited to 'deflate.c')
-rw-r--r--deflate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/deflate.c b/deflate.c
index 8dc6d35..138f02a 100644
--- a/deflate.c
+++ b/deflate.c
@@ -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 */