mirror of https://github.com/acidanthera/audk.git
BaseTools: use in to compare single chars
instead if 3 Startswith for single chars, just use in with a list of chars Cc: Yonghong Zhu <yonghong.zhu@intel.com> Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
parent
0944818a19
commit
0a014fba41
|
@ -835,7 +835,7 @@ class ValueExpressionEx(ValueExpression):
|
|||
elif Item.startswith('UINT64'):
|
||||
ItemSize = 8
|
||||
ValueType = 'UINT64'
|
||||
elif Item.startswith('"') or Item.startswith("'") or Item.startswith('L'):
|
||||
elif Item[0] in ['"',"'",'L']:
|
||||
ItemSize = 0
|
||||
ValueType = 'VOID*'
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue