diff options
author | Feng, Bob C <bob.c.feng@intel.com> | 2018-12-24 18:24:46 +0800 |
---|---|---|
committer | BobCF <bob.c.feng@intel.com> | 2019-01-04 15:18:18 +0800 |
commit | 672601cfcc6f9905dd5fe8cdd7949cfb7f91fed1 (patch) | |
tree | 7211dd8cb732392325650ab20f8729935db10506 /BaseTools/Source/Python/Workspace/BuildClassObject.py | |
parent | 82bfbd392abcd9236ce5529354b20e18641f9cf4 (diff) | |
download | edk2-672601cfcc6f9905dd5fe8cdd7949cfb7f91fed1.tar.gz edk2-672601cfcc6f9905dd5fe8cdd7949cfb7f91fed1.tar.bz2 edk2-672601cfcc6f9905dd5fe8cdd7949cfb7f91fed1.zip |
BaseTools: Correct PcdArray value assigment statement
https://bugzilla.tianocore.org/show_bug.cgi?id=1410
BaseTools should not generate C structure array initial value
if the value is not specified with CODE style.
This patch is going to remove the incorrect initial value statement
and correct the Pcd Array value assignment statement.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Bob Feng <bob.c.feng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Workspace/BuildClassObject.py')
-rw-r--r-- | BaseTools/Source/Python/Workspace/BuildClassObject.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/Workspace/BuildClassObject.py b/BaseTools/Source/Python/Workspace/BuildClassObject.py index 52b3369561..73920c5153 100644 --- a/BaseTools/Source/Python/Workspace/BuildClassObject.py +++ b/BaseTools/Source/Python/Workspace/BuildClassObject.py @@ -101,7 +101,6 @@ class PcdClassObject(object): for i in range(len(deme)-1):
if int(deme[i].lstrip("[").rstrip("]").strip()) > int(self._Capacity[i]):
print "error"
- self._Capacity = [str(int(d) + 1) for d in self._Capacity]
return self._Capacity
@property
def DatumType(self):
|