summaryrefslogtreecommitdiff
path: root/deflate.c
diff options
context:
space:
mode:
authorNathan Moinvaziri <nathan@nathanm.com>2026-01-31 16:57:24 -0800
committerHans Kristian Rosbach <hk-github@circlestorm.org>2026-02-18 13:57:07 +0100
commitee2dd805d6418dee2cce27d6bbef20f400fc934e (patch)
treea197707a38a143169bf51e3a73dad97345fdab97 /deflate.c
parent2f6f0e84571d420edea04cbd5ffbf0a13934a535 (diff)
downloadProject-Tick-ee2dd805d6418dee2cce27d6bbef20f400fc934e.tar.gz
Project-Tick-ee2dd805d6418dee2cce27d6bbef20f400fc934e.zip
Optimize symbol buffer access based on platform unaligned access
Diffstat (limited to 'deflate.c')
-rw-r--r--deflate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/deflate.c b/deflate.c
index e0f89fab9d..81e1ac5a5f 100644
--- a/deflate.c
+++ b/deflate.c
@@ -167,7 +167,7 @@ Z_INTERNAL deflate_allocs* alloc_deflate(PREFIX3(stream) *strm, int windowBits,
int window_size = DEFLATE_ADJUST_WINDOW_SIZE((1 << windowBits) * 2);
int prev_size = (1 << windowBits) * (int)sizeof(Pos);
int head_size = HASH_SIZE * sizeof(Pos);
- int pending_size = lit_bufsize * LIT_BUFS;
+ int pending_size = (lit_bufsize * LIT_BUFS) + 1;
int state_size = sizeof(deflate_state);
int alloc_size = sizeof(deflate_allocs);