From c72f900ccc894aa8830ffe500e88aa0afc0ca8a0 Mon Sep 17 00:00:00 2001 From: pacien Date: Sun, 25 Nov 2018 21:09:18 +0100 Subject: Fix block aligment --- src/rawblock.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 @@ import integers, bitreader, bitwriter -const maxDataBitLength = high(uint16).int - 1 +const maxDataBitLength = ((high(uint16).int - 1) div wordBitLength) * wordBitLength const bitLengthFieldBitLength = 2 * wordBitLength type RawBlock* = object -- cgit v1.2.3