diff options
author | pacien | 2018-11-25 21:09:18 +0100 |
---|---|---|
committer | pacien | 2018-11-25 21:09:18 +0100 |
commit | c72f900ccc894aa8830ffe500e88aa0afc0ca8a0 (patch) | |
tree | 39cc5e5217e173650cee2b79d30ce395e568be29 /src | |
parent | 00cacbd664b1335bc8e7d9553448d1ad1f1744c7 (diff) | |
download | gziplike-c72f900ccc894aa8830ffe500e88aa0afc0ca8a0.tar.gz |
Fix block aligment
Diffstat (limited to 'src')
-rw-r--r-- | src/rawblock.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rawblock.nim b/src/rawblock.nim index 0a44550..bf4de28 100644 --- a/src/rawblock.nim +++ b/src/rawblock.nim | |||
@@ -16,7 +16,7 @@ | |||
16 | 16 | ||
17 | import integers, bitreader, bitwriter | 17 | import integers, bitreader, bitwriter |
18 | 18 | ||
19 | const maxDataBitLength = high(uint16).int - 1 | 19 | const maxDataBitLength = ((high(uint16).int - 1) div wordBitLength) * wordBitLength |
20 | const bitLengthFieldBitLength = 2 * wordBitLength | 20 | const bitLengthFieldBitLength = 2 * wordBitLength |
21 | 21 | ||
22 | type RawBlock* = object | 22 | type RawBlock* = object |