Bugfix in hex8tohex32.py

This commit is contained in:
Clifford Wolf 2015-11-18 12:52:56 +01:00
parent aa25e426be
commit 014b2c6f09
1 changed files with 1 additions and 2 deletions

View File

@ -25,9 +25,8 @@ for line in fileinput.input():
data.append(0)
ptr -= 1
else:
while ptr < addr:
while ptr + len(data) < addr:
data.append(0)
ptr += 1
else:
data += [int(tok, 16) for tok in line.split()]