mirror of
https://github.com/status-im/nim-drchaos.git
synced 2025-02-21 07:08:14 +00:00
enable optimization for Nim devel
This commit is contained in:
parent
6e78f5c8a3
commit
2c9a7a85d5
@ -573,7 +573,10 @@ template mutatorImpl*(target, mutator, typ: untyped) =
|
||||
if data.len > 1:
|
||||
#var pos = 1
|
||||
#fromData(data, pos, x)
|
||||
x = getInput(x, data)
|
||||
when (NimMajor, NimMinor, NimPatch) >= (1, 7, 1):
|
||||
x = move getInput(x, data)
|
||||
else:
|
||||
x = getInput(x, data)
|
||||
FuzzMutator(mutator)(x, maxLen-x.byteSize, r)
|
||||
result = x.byteSize+1 # +1 for the skipped byte
|
||||
if result <= maxLen:
|
||||
|
Loading…
x
Reference in New Issue
Block a user