aboutsummaryrefslogtreecommitdiff
path: root/deflate.c
diff options
context:
space:
mode:
Diffstat (limited to 'deflate.c')
-rw-r--r--deflate.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/deflate.c b/deflate.c
index e97bd87..568eadd 100644
--- a/deflate.c
+++ b/deflate.c
@@ -190,8 +190,11 @@ local const config configuration_table[10] = {
190 * prev[] will be initialized on the fly. 190 * prev[] will be initialized on the fly.
191 */ 191 */
192#define CLEAR_HASH(s) \ 192#define CLEAR_HASH(s) \
193 s->head[s->hash_size-1] = NIL; \ 193 do { \
194 zmemzero((Bytef *)s->head, (unsigned)(s->hash_size-1)*sizeof(*s->head)); 194 s->head[s->hash_size-1] = NIL; \
195 zmemzero((Bytef *)s->head, \
196 (unsigned)(s->hash_size-1)*sizeof(*s->head)); \
197 } while (0)
195 198
196/* =========================================================================== 199/* ===========================================================================
197 * Slide the hash table when sliding the window down (could be avoided with 32 200 * Slide the hash table when sliding the window down (could be avoided with 32