quick fix to avoid infinite loop

This commit is contained in:
root 2019-05-17 21:21:00 +00:00
parent fe83ce5262
commit 80421927a3

View File

@ -150,7 +150,7 @@ def main():
for (pos, value) in conversions:
if pos[1] >= len(test):
break
if value < 255:
if (value < 255) and (value < test[pos[1]]):
numConversions += 1
for b in range(pos[0], pos[1]):
test[b] = 0