aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2014-01-18 01:42:07 -0500
committerKevin O'Connor <kevin@koconnor.net>2014-01-22 17:30:30 -0500
commit25107a326164edbd6547c16de562cdd455f86f02 (patch)
tree9afb2f7baf7be036896c473abb19cd7a02713075
parent3d73eaa582e1e309888be8a322a72d53eba0d218 (diff)
downloadseabios-hppa-25107a326164edbd6547c16de562cdd455f86f02.zip
seabios-hppa-25107a326164edbd6547c16de562cdd455f86f02.tar.gz
seabios-hppa-25107a326164edbd6547c16de562cdd455f86f02.tar.bz2
scripts: Allow encodeint.py to take integers in hex notation.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rwxr-xr-xscripts/encodeint.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/encodeint.py b/scripts/encodeint.py
index 12be5fe..0d34aee 100755
--- a/scripts/encodeint.py
+++ b/scripts/encodeint.py
@@ -10,7 +10,7 @@ import struct
def main():
filename = sys.argv[1]
- value = int(sys.argv[2])
+ value = int(sys.argv[2], 0)
outval = struct.pack('<Q', value)
f = open(filename, 'wb')