[SeaBIOS] [PATCH] scripts: Allow encodeint.py to take integers in hex notation.

Kevin O'Connor kevin at koconnor.net
Mon Jan 20 18:11:23 CET 2014


Signed-off-by: Kevin O'Connor <kevin at koconnor.net>
---
 scripts/encodeint.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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')
-- 
1.8.3.1




More information about the SeaBIOS mailing list