MFV r351500: Fix CLEAR_HASH macro to be usable as a single statement.
MFC after: 2 weeks
This commit is contained in:
commit
110f229794
@ -189,9 +189,11 @@ local const config configuration_table[10] = {
|
|||||||
* Initialize the hash table (avoiding 64K overflow for 16 bit systems).
|
* Initialize the hash table (avoiding 64K overflow for 16 bit systems).
|
||||||
* prev[] will be initialized on the fly.
|
* prev[] will be initialized on the fly.
|
||||||
*/
|
*/
|
||||||
#define CLEAR_HASH(s) do { \
|
#define CLEAR_HASH(s) \
|
||||||
s->head[s->hash_size-1] = NIL; \
|
do { \
|
||||||
zmemzero((Bytef *)s->head, (unsigned)(s->hash_size-1)*sizeof(*s->head)); \
|
s->head[s->hash_size-1] = NIL; \
|
||||||
|
zmemzero((Bytef *)s->head, \
|
||||||
|
(unsigned)(s->hash_size-1)*sizeof(*s->head)); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
/* ===========================================================================
|
/* ===========================================================================
|
||||||
|
Loading…
x
Reference in New Issue
Block a user