summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJordan Justen <[email protected]>2019-04-19 15:31:29 -0700
committerPlamena Manolova <[email protected]>2019-04-29 21:19:58 +0000
commit38ffd7ce793d26a2d2c78b41e6dfff75d5a75c22 (patch)
treefcab380da45a28b4fa4410304e322bd3a97330f0 /src
parent232c0f64891e2f9853726c36485b566b23b22cf4 (diff)
intel/genxml: Support base-16 in value & start fields in gen_sort_tags.py
With python's int(), if the optional second parameter is 0, then python will support the 0x prefix for hex numbers. Signed-off-by: Jordan Justen <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/intel/genxml/gen_sort_tags.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/genxml/gen_sort_tags.py b/src/intel/genxml/gen_sort_tags.py
index 94c5ff26e03..66b1011cef0 100644
--- a/src/intel/genxml/gen_sort_tags.py
+++ b/src/intel/genxml/gen_sort_tags.py
@@ -36,10 +36,10 @@ def get_name(element):
return element.attrib['name']
def get_value(element):
- return int(element.attrib['value'])
+ return int(element.attrib['value'], 0)
def get_start(element):
- return int(element.attrib['start'])
+ return int(element.attrib['start'], 0)
base_types = [