From: Kevin O'Connor Date: Sat, 18 Jan 2014 06:42:07 +0000 (-0500) Subject: scripts: Allow encodeint.py to take integers in hex notation. X-Git-Tag: rel-1.7.5-rc1~74 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=25107a326164edbd6547c16de562cdd455f86f02;p=seabios.git scripts: Allow encodeint.py to take integers in hex notation. Signed-off-by: Kevin O'Connor --- 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('