aboutsummaryrefslogtreecommitdiff
path: root/internal/compress/flate/level3.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-05 21:17:08 +0800
committerGravatar Runxi Yu2026-03-05 21:17:08 +0800
commit77d651d2fcef14a55d21649435bb02836fbc3415 (patch)
tree36663447db71560f908bf43c97b0ad8ca9c1bbf7 /internal/compress/flate/level3.go
parentinternal/compress/zlib: Check errors properly and prettify (diff)
signatureNo signature
*: Prettify
Diffstat (limited to 'internal/compress/flate/level3.go')
-rw-r--r--internal/compress/flate/level3.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/compress/flate/level3.go b/internal/compress/flate/level3.go
index 33f9fb15..2cef0290 100644
--- a/internal/compress/flate/level3.go
+++ b/internal/compress/flate/level3.go
@@ -181,7 +181,8 @@ func (e *fastEncL3) Encode(dst *tokens, src []byte) {
nextHash := hashLen(load6432(src, i), tableBits, hashBytes)
e.table[nextHash] = tableEntryPrev{
Prev: e.table[nextHash].Cur,
- Cur: tableEntry{offset: e.cur + i}}
+ Cur: tableEntry{offset: e.cur + i},
+ }
}
// We could immediately start working at s now, but to improve
// compression we first update the hash table at s-2 to s.