diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-11-18 12:52:56 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-11-18 12:52:56 +0100 |
commit | 014b2c6f09e89d5dfe119e470040168e286695f6 (patch) | |
tree | c29e408f981e2c4ae6a31766f0f4c1524b6a04fd /scripts/cxxdemo | |
parent | aa25e426be9338456eb8122137d181c8a4cf792d (diff) | |
download | picorv32-014b2c6f09e89d5dfe119e470040168e286695f6.tar.gz picorv32-014b2c6f09e89d5dfe119e470040168e286695f6.zip |
Bugfix in hex8tohex32.py
Diffstat (limited to 'scripts/cxxdemo')
-rw-r--r-- | scripts/cxxdemo/hex8tohex32.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/cxxdemo/hex8tohex32.py b/scripts/cxxdemo/hex8tohex32.py index 3fa80b1..ae44101 100644 --- a/scripts/cxxdemo/hex8tohex32.py +++ b/scripts/cxxdemo/hex8tohex32.py @@ -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()] |