diff options
author | Liming Gao <liming.gao@intel.com> | 2018-09-04 09:00:52 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2018-09-12 15:42:28 +0800 |
commit | 7131865c68e3b9ab5687399c541fbab23e4d360f (patch) | |
tree | 2e8ad65106dc72e44ca795f188dd0312d5ca6e1b | |
parent | ee1e258ab5e0ccc044cfd85424882a38b102150c (diff) | |
download | edk2-7131865c68e3b9ab5687399c541fbab23e4d360f.tar.gz |
BaseTools PCD: Correct DataType Checker
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com>
(cherry picked from commit d0a0c52c221e5dcf82f24d4346c1cf52109d6dfb)
-rw-r--r-- | BaseTools/Source/Python/AutoGen/GenVar.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/AutoGen/GenVar.py b/BaseTools/Source/Python/AutoGen/GenVar.py index 7165a8bf3b..b4140ed3cd 100644 --- a/BaseTools/Source/Python/AutoGen/GenVar.py +++ b/BaseTools/Source/Python/AutoGen/GenVar.py @@ -91,7 +91,7 @@ class VariableMgr(object): data_type = item.data_type
value_list = item.default_value.strip("{").strip("}").split(",")
if data_type in ["BOOLEAN","UINT8","UINT16","UINT32","UINT64"]:
- if data_type == ["BOOLEAN","UINT8"]:
+ if data_type in ["BOOLEAN","UINT8"]:
data_flag = "=B"
elif data_type == "UINT16":
data_flag = "=H"
|