summaryrefslogtreecommitdiff
path: root/BaseTools
diff options
context:
space:
mode:
authorYonghong Zhu <yonghong.zhu@intel.com>2018-08-22 10:11:23 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-08-28 14:33:47 +0800
commitf25cd80e4d823fa6f7d970d9f0ddb935327446ba (patch)
tree41452f56b96524c9608dcedcd6eb5525d981551a /BaseTools
parentf2cc33d84949b711193aed145254f3b71dbfea57 (diff)
downloadedk2-f25cd80e4d823fa6f7d970d9f0ddb935327446ba.zip
edk2-f25cd80e4d823fa6f7d970d9f0ddb935327446ba.tar.gz
edk2-f25cd80e4d823fa6f7d970d9f0ddb935327446ba.tar.bz2
BaseTools: Fix one expression bug to support ~ operate
current use (0x41>=~0x0&0x41|0x0) as Pcd value cause build failure because the ~ is not correctly recognized. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools')
-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 0091e47..78c69fa 100644
--- a/BaseTools/Source/Python/Common/Expression.py
+++ b/BaseTools/Source/Python/Common/Expression.py
@@ -788,7 +788,7 @@ class ValueExpression(BaseExpression):
OpToken = ''
for Ch in Expr:
if Ch in self.NonLetterOpLst:
- if '!' == Ch and OpToken:
+ if Ch in ['!', '~'] and OpToken:
break
self._Idx += 1
OpToken += Ch