summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/genxml/gen_pack_header.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/intel/genxml/gen_pack_header.py b/src/intel/genxml/gen_pack_header.py
index 2a709454af3..5228f30bd05 100644
--- a/src/intel/genxml/gen_pack_header.py
+++ b/src/intel/genxml/gen_pack_header.py
@@ -3,6 +3,7 @@
from __future__ import (
absolute_import, division, print_function, unicode_literals
)
+import ast
import xml.parsers.expat
import re
import sys
@@ -476,7 +477,7 @@ class Group(object):
class Value(object):
def __init__(self, attrs):
self.name = safe_name(attrs["name"])
- self.value = int(attrs["value"])
+ self.value = ast.literal_eval(attrs["value"])
class Parser(object):
def __init__(self):