summaryrefslogtreecommitdiff
path: root/deflate.h
diff options
context:
space:
mode:
authorHans Kristian Rosbach <hk-git@circlestorm.org>2019-09-17 15:48:03 +0200
committerHans Kristian Rosbach <hk-github@circlestorm.org>2019-10-22 09:17:22 +0200
commitedbfb283977a19d1d6c80d78b9d761dd545c8071 (patch)
treeed63659dfa3954f08e9660e02de3ac5ac816f69d /deflate.h
parentbcb7a0b588851257e5a531df4203c001c39d3472 (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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/deflate.h b/deflate.h
index fe8a80a..9db03fb 100644
--- a/deflate.h
+++ b/deflate.h
@@ -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;\