aboutsummaryrefslogtreecommitdiff
path: root/src/lzsshuffman/lzsshuffmanstats.nim
diff options
context:
space:
mode:
authorpacien2018-12-02 00:38:12 +0100
committerpacien2018-12-02 00:38:12 +0100
commit56bfed7e2cdd44dc4ad0c5e233224cf0080e05ac (patch)
treed42919fdf57f7f014ca0c0db1a7a55e1465a0135 /src/lzsshuffman/lzsshuffmanstats.nim
parent5cc4256a931b98ea167291397421d0db60c5d40c (diff)
downloadgziplike-56bfed7e2cdd44dc4ad0c5e233224cf0080e05ac.tar.gz
replace linkedlists by seqs
Diffstat (limited to 'src/lzsshuffman/lzsshuffmanstats.nim')
-rw-r--r--src/lzsshuffman/lzsshuffmanstats.nim2
1 files changed, 1 insertions, 1 deletions
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
20 20
21proc aggregateStats*(chain: LzssChain): tuple[symbolTable, positionTable: CountTableRef[uint16]] = 21proc aggregateStats*(chain: LzssChain): tuple[symbolTable, positionTable: CountTableRef[uint16]] =
22 var (symbolTable, positionTable) = (newCountTable[uint16](), newCountTable[uint16]()) 22 var (symbolTable, positionTable) = (newCountTable[uint16](), newCountTable[uint16]())
23 for node in chain.items: 23 for node in chain:
24 case node.kind: 24 case node.kind:
25 of character: 25 of character:
26 symbolTable.inc(node.character) 26 symbolTable.inc(node.character)