diff options
author | Hans Kristian Rosbach <hk-git@circlestorm.org> | 2019-09-17 15:48:03 +0200 |
---|---|---|
committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2019-10-22 09:17:22 +0200 |
commit | edbfb283977a19d1d6c80d78b9d761dd545c8071 (patch) | |
tree | ed63659dfa3954f08e9660e02de3ac5ac816f69d /deflate.h | |
parent | bcb7a0b588851257e5a531df4203c001c39d3472 (diff) |
Use temp variables in send_all_trees too
Re-introduce private temp variables for val and len in send_bits macro.
Diffstat (limited to 'deflate.h')
-rw-r--r-- | deflate.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -437,7 +437,9 @@ void ZLIB_INTERNAL flush_pending(PREFIX3(streamp) strm); * (16 - bit_valid) bits from value, leaving (width - (16-bit_valid)) * unused bits in value. */ -#define send_bits(s, val, len, bit_buf, bits_valid) {\ +#define send_bits(s, t_val, t_len, bit_buf, bits_valid) {\ + int val = t_val;\ + int len = t_len;\ send_debug_trace(s, val, len);\ if (bits_valid > (int)Buf_size - len) {\ bit_buf |= (uint16_t)val << bits_valid;\ |