From 672601cfcc6f9905dd5fe8cdd7949cfb7f91fed1 Mon Sep 17 00:00:00 2001 From: "Feng, Bob C" Date: Mon, 24 Dec 2018 18:24:46 +0800 Subject: 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 Reviewed-by: Liming Gao --- BaseTools/Source/Python/Workspace/BuildClassObject.py | 1 - 1 file changed, 1 deletion(-) (limited to 'BaseTools/Source/Python/Workspace/BuildClassObject.py') 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): -- cgit v1.2.3