summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Common/Expression.py
diff options
context:
space:
mode:
authorFeng, YunhuaX </o=Intel/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Feng, YunhuaX4e1>2018-02-09 12:31:10 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-02-10 19:55:13 +0800
commita35918caae4d0b9bb51d0d4765117d7ca9a4d641 (patch)
treef1c2d951a942ca0cc8412c4f3a1afd91cbfed114 /BaseTools/Source/Python/Common/Expression.py
parent6791175f058837b621623d4adf873fcf8cb20e10 (diff)
downloadedk2-a35918caae4d0b9bb51d0d4765117d7ca9a4d641.tar.gz
edk2-a35918caae4d0b9bb51d0d4765117d7ca9a4d641.tar.bz2
edk2-a35918caae4d0b9bb51d0d4765117d7ca9a4d641.zip
BaseTools: Fix VOID* type bug
Code miss UINT32 and UINT64 value type setting in VOID*, like as {UINT32({TRUE})} Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Common/Expression.py')
-rw-r--r--BaseTools/Source/Python/Common/Expression.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/Common/Expression.py b/BaseTools/Source/Python/Common/Expression.py
index a19f35d991..74d1b08f76 100644
--- a/BaseTools/Source/Python/Common/Expression.py
+++ b/BaseTools/Source/Python/Common/Expression.py
@@ -857,8 +857,10 @@ class ValueExpressionEx(ValueExpression):
ValueType = "UINT16"
elif Item.startswith('UINT32'):
ItemSize = 4
+ ValueType = "UINT32"
elif Item.startswith('UINT64'):
ItemSize = 8
+ ValueType = "UINT64"
else:
ItemSize = 0
if ValueType: