From 56bfed7e2cdd44dc4ad0c5e233224cf0080e05ac Mon Sep 17 00:00:00 2001 From: pacien Date: Sun, 2 Dec 2018 00:38:12 +0100 Subject: replace linkedlists by seqs --- src/lzsshuffman/lzsshuffmanstats.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lzsshuffman/lzsshuffmanstats.nim') diff --git a/src/lzsshuffman/lzsshuffmanstats.nim b/src/lzsshuffman/lzsshuffmanstats.nim index 037ce5f..d5c1f3e 100644 --- a/src/lzsshuffman/lzsshuffmanstats.nim +++ b/src/lzsshuffman/lzsshuffmanstats.nim @@ -20,7 +20,7 @@ import lzsshuffmansymbol proc aggregateStats*(chain: LzssChain): tuple[symbolTable, positionTable: CountTableRef[uint16]] = var (symbolTable, positionTable) = (newCountTable[uint16](), newCountTable[uint16]()) - for node in chain.items: + for node in chain: case node.kind: of character: symbolTable.inc(node.character) -- cgit v1.2.3