diff options
| author | Nathan Moinvaziri <nathan@nathanm.com> | 2026-01-31 16:57:24 -0800 |
|---|---|---|
| committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2026-02-18 13:57:07 +0100 |
| commit | ee2dd805d6418dee2cce27d6bbef20f400fc934e (patch) | |
| tree | a197707a38a143169bf51e3a73dad97345fdab97 /deflate.c | |
| parent | 2f6f0e84571d420edea04cbd5ffbf0a13934a535 (diff) | |
| download | Project-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |
