Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Bob Feng <bob.c.f...@intel.com> Cc: Chen, Hesheng <hesheng.c...@intel.com> --- Source/Python/AutoGen/ValidCheckingInfoObject.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Source/Python/AutoGen/ValidCheckingInfoObject.py b/Source/Python/AutoGen/ValidCheckingInfoObject.py index 4a6e031..08c0800 100644 --- a/Source/Python/AutoGen/ValidCheckingInfoObject.py +++ b/Source/Python/AutoGen/ValidCheckingInfoObject.py @@ -62,7 +62,7 @@ class VAR_CHECK_PCD_VARIABLE_TAB_CONTAINER(object): itemIndex += 1 realLength += 5 for v_data in item.data: - if type(v_data) == type(1): + if type(v_data) in (int, long): realLength += item.StorageWidth else: realLength += item.StorageWidth @@ -155,7 +155,7 @@ class VAR_CHECK_PCD_VARIABLE_TAB_CONTAINER(object): realLength += 1 for v_data in item.data: - if type(v_data) == type(1): + if type(v_data) in (int, long): b = pack(FormatMap[item.StorageWidth], v_data) Buffer += b realLength += item.StorageWidth -- 1.9.5.msysgit.0 ------------------------------------------------------------------------------ _______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel