From 38ffd7ce793d26a2d2c78b41e6dfff75d5a75c22 Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Fri, 19 Apr 2019 15:31:29 -0700 Subject: [PATCH] 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 Reviewed-by: Lionel Landwerlin --- src/intel/genxml/gen_sort_tags.py | 4 ++-- 1 file 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 = [ -- 2.30.2