diff options
Diffstat (limited to 'release/datafiles/ctodata.py')
-rwxr-xr-x | release/datafiles/ctodata.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/release/datafiles/ctodata.py b/release/datafiles/ctodata.py index 74bcc586baa..a81a10102dc 100755 --- a/release/datafiles/ctodata.py +++ b/release/datafiles/ctodata.py @@ -44,7 +44,11 @@ except: data = fpin.read().rsplit("{")[-1].split("}")[0] data = data.replace(",", " ") data = data.split() -data = bytes([int(v) for v in data]) +data = [int(v) for v in data] +# for some reason all data gets trailing byte +last = data.pop() +assert(last == 0) +data = bytes(data) dname = filename + ".ctodata" |