summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--deps/zlib/deflate.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/deps/zlib/deflate.c b/deps/zlib/deflate.c
index 1ec761448d..909606df01 100644
--- a/deps/zlib/deflate.c
+++ b/deps/zlib/deflate.c
@@ -190,8 +190,11 @@ local const config configuration_table[10] = {
* prev[] will be initialized on the fly.
*/
#define CLEAR_HASH(s) \
- s->head[s->hash_size-1] = NIL; \
- zmemzero((Bytef *)s->head, (unsigned)(s->hash_size-1)*sizeof(*s->head));
+ do { \
+ s->head[s->hash_size-1] = NIL; \
+ zmemzero((Bytef *)s->head, \
+ (unsigned)(s->hash_size-1)*sizeof(*s->head)); \
+ } while (0)
/* ===========================================================================
* Slide the hash table when sliding the window down (could be avoided with 32