diff --git a/drchaos/common.nim b/drchaos/common.nim index 8282a98..cbab037 100644 --- a/drchaos/common.nim +++ b/drchaos/common.nim @@ -331,7 +331,7 @@ proc toData*[K, V](data: var openArray[byte]; pos: var int; input: (Table[K, V]| proc fromData*[K, V](data: openArray[byte]; pos: var int; output: var (Table[K, V]|OrderedTable[K, V])) = let len = readInt32(data, pos).int - for i in 0 ..< len: + for i in 0.. 1: - #var pos = 1 - #fromData(data, pos, x) when (NimMajor, NimMinor, NimPatch) >= (1, 7, 1): x = move getInput(x, data) else: