handle zero bytes in reduce-delete

This commit is contained in:
Alex Groce 2018-09-02 13:07:23 -07:00
parent b0ca3ee60e
commit ba25358ebf

View File

@ -145,6 +145,8 @@ def main():
currentTest = newTest
break
for b in range(0, len(currentTest)):
if currentTest[b] == 0:
continue
newTest = bytearray(currentTest)
newTest[b] = currentTest[b]-1
newTest = newTest[:b+1] + newTest[b+2]