summaryrefslogtreecommitdiffstats
path: root/src/intel/genxml/gen_zipped_file.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/intel/genxml/gen_zipped_file.py')
-rw-r--r--src/intel/genxml/gen_zipped_file.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/genxml/gen_zipped_file.py b/src/intel/genxml/gen_zipped_file.py
index af2008bea03..1d6bd568246 100644
--- a/src/intel/genxml/gen_zipped_file.py
+++ b/src/intel/genxml/gen_zipped_file.py
@@ -62,8 +62,8 @@ def main():
print("")
print("static const uint8_t compress_genxmls[] = {")
print(" ", end='')
- for i, c in enumerate(compressed_data, start=1):
- print("0x%.2x, " % ord(c), end='\n ' if not i % 12 else '')
+ for i, c in enumerate(bytearray(compressed_data), start=1):
+ print("0x%.2x, " % c, end='\n ' if not i % 12 else '')
print('\n};')