summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python
diff options
context:
space:
mode:
Diffstat (limited to 'BaseTools/Source/Python')
-rw-r--r--BaseTools/Source/Python/Common/Expression.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/Common/Expression.py b/BaseTools/Source/Python/Common/Expression.py
index 8e1a9866e1..320f001500 100644
--- a/BaseTools/Source/Python/Common/Expression.py
+++ b/BaseTools/Source/Python/Common/Expression.py
@@ -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: