aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/blocks/streamblock.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blocks/streamblock.nim b/src/blocks/streamblock.nim
index c904af7..8351b6f 100644
--- a/src/blocks/streamblock.nim
+++ b/src/blocks/streamblock.nim
@@ -53,7 +53,7 @@ proc writeSerialisedTo*(streamBlock: StreamBlock, bitWriter: BitWriter) =
53 of lzss: streamBlock.lzssBlock.writeSerialisedTo(bitWriter) 53 of lzss: streamBlock.lzssBlock.writeSerialisedTo(bitWriter)
54 else: raise newException(ValueError, "unhandled block type") 54 else: raise newException(ValueError, "unhandled block type")
55 55
56proc readRaw*(bitReader: BitReader, kind: BlockKind = uncompressed): StreamBlock = 56proc readRaw*(bitReader: BitReader, kind: BlockKind = lzss): StreamBlock =
57 result.kind = kind 57 result.kind = kind
58 case kind: 58 case kind:
59 of uncompressed: result.rawBlock = rawblock.readRaw(bitReader) 59 of uncompressed: result.rawBlock = rawblock.readRaw(bitReader)