Skip to content

Commit

Permalink
fix macro for msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
matbech authored and Dead2 committed Nov 2, 2015
1 parent fb0346a commit 3dedfeb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deflate.h
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,8 @@ void ZLIB_INTERNAL bi_windup(deflate_state *s);
* previous key instead of complete recalculation each time.
*/
#ifdef X86_SSE4_2_CRC_HASH
#define UPDATE_HASH(s, h, i) (\
{\
#define UPDATE_HASH(s, h, i) \
do {\
if (s->level < 6) \
h = (3483 * (s->window[i]) +\
23081* (s->window[i+1]) +\
Expand All @@ -398,7 +398,7 @@ void ZLIB_INTERNAL bi_windup(deflate_state *s);
h = (25881* (s->window[i]) +\
24674* (s->window[i+1]) +\
25811* (s->window[i+2])) & s->hash_mask;\
})
} while (0)
#else
# define UPDATE_HASH(s, h, i) (h = (((h) << s->hash_shift) ^ (s->window[i + (MIN_MATCH-1)])) & s->hash_mask)
#endif
Expand Down

0 comments on commit 3dedfeb

Please sign in to comment.