summaryrefslogtreecommitdiff
path: root/insert_string_tpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'insert_string_tpl.h')
-rw-r--r--insert_string_tpl.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/insert_string_tpl.h b/insert_string_tpl.h
index bfadc5de9e..281c013463 100644
--- a/insert_string_tpl.h
+++ b/insert_string_tpl.h
@@ -1,8 +1,8 @@
#ifndef INSERT_STRING_H_
#define INSERT_STRING_H_
-/* insert_string.h -- Private insert_string functions shared with more than
- * one insert string implementation
+/* insert_string_tpl.h -- Private insert_string functions shared with more than
+ * one insert string implementation
*
* Copyright (C) 1995-2024 Jean-loup Gailly and Mark Adler
*
@@ -48,7 +48,7 @@
* previous key instead of complete recalculation each time.
*/
Z_INTERNAL uint32_t UPDATE_HASH(uint32_t h, uint32_t val) {
- HASH_CALC(s, h, val);
+ HASH_CALC(h, val);
return h & HASH_CALC_MASK;
}
@@ -64,7 +64,7 @@ Z_INTERNAL Pos QUICK_INSERT_STRING(deflate_state *const s, uint32_t str) {
HASH_CALC_VAR_INIT;
HASH_CALC_READ;
- HASH_CALC(s, HASH_CALC_VAR, val);
+ HASH_CALC(HASH_CALC_VAR, val);
HASH_CALC_VAR &= HASH_CALC_MASK;
hm = HASH_CALC_VAR;
@@ -93,7 +93,7 @@ Z_INTERNAL void INSERT_STRING(deflate_state *const s, uint32_t str, uint32_t cou
HASH_CALC_VAR_INIT;
HASH_CALC_READ;
- HASH_CALC(s, HASH_CALC_VAR, val);
+ HASH_CALC(HASH_CALC_VAR, val);
HASH_CALC_VAR &= HASH_CALC_MASK;
hm = HASH_CALC_VAR;