We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ba393e commit 38e8ce3Copy full SHA for 38e8ce3
deflate.c
@@ -190,8 +190,11 @@ local const config configuration_table[10] = {
190
* prev[] will be initialized on the fly.
191
*/
192
#define CLEAR_HASH(s) \
193
- s->head[s->hash_size-1] = NIL; \
194
- zmemzero((Bytef *)s->head, (unsigned)(s->hash_size-1)*sizeof(*s->head));
+ do { \
+ s->head[s->hash_size-1] = NIL; \
195
+ zmemzero((Bytef *)s->head, \
196
+ (unsigned)(s->hash_size-1)*sizeof(*s->head)); \
197
+ } while (0)
198
199
/* ===========================================================================
200
* Slide the hash table when sliding the window down (could be avoided with 32
0 commit comments