scripts: Allow encodeint.py to take integers in hex notation.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2014-01-18 01:42:07 -05:00
parent 3d73eaa582
commit 25107a3261
1 changed files with 1 additions and 1 deletions

View File

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