Commit 6abae0c0 authored by Dimitris Lampridis's avatar Dimitris Lampridis

[tools] fix mem_init_gen to work with Python3

parent bee232b2
......@@ -73,7 +73,7 @@ with open ( args.in_file, 'rb' ) as fin:
contents = fin.read ( )
# byte value to use for padding
pad_val = chr ( args.pad & 0xff )
pad_val = chr ( args.pad & 0xff ).encode ( )
# pad/trim if necessary to get to args.depth
if args.depth:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment