minor
This commit is contained in:
parent
2c9a7a85d5
commit
343b634afb
|
@ -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..<len:
|
||||
var key: K
|
||||
fromData(data, pos, key)
|
||||
fromData(data, pos, mgetOrPut(output, key, default(V)))
|
||||
|
|
|
@ -571,8 +571,6 @@ template mutatorImpl*(target, mutator, typ: untyped) =
|
|||
proc customMutatorImpl(x: var typ; data: openArray[byte]; maxLen: int;
|
||||
r: var Rand): int {.nosan.} =
|
||||
if data.len > 1:
|
||||
#var pos = 1
|
||||
#fromData(data, pos, x)
|
||||
when (NimMajor, NimMinor, NimPatch) >= (1, 7, 1):
|
||||
x = move getInput(x, data)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue