Skip to content

Commit 6366a36

Browse files
committed
0.10.17
1 parent a99f6a7 commit 6366a36

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/zippy/bitstreams.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ proc addBits*(
9494
assert bitLen >= 0 and bitLen <= 32
9595

9696
if b.pos + 8 > dst.len:
97-
# Make sure we have room to read64
98-
dst.setLen(max(dst.len * 2, 8))
97+
# Make sure we have room to write64
98+
dst.setLen(max(dst.len * 2, b.pos + 8))
9999

100100
let
101101
dst = cast[ptr UncheckedArray[uint8]](dst[0].addr)

zippy.nimble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "0.10.16"
1+
version = "0.10.17"
22
author = "Ryan Oldenburg"
33
description = "Pure Nim implementation of deflate, zlib, gzip and zip."
44
license = "MIT"

0 commit comments

Comments
 (0)