From 5565a8c4d2196b5e55e702169feefeeb07a330d9 Mon Sep 17 00:00:00 2001 From: "Carsey, Jaben" Date: Sat, 28 Apr 2018 06:32:32 +0800 Subject: BaseTools: move PCD size calculation functions to PcdClassObject move both GetPcdMaxSize and GetPcdSize to the PcdClassObject. fix MAX_SIZE_TYPE to have int values Cc: Liming Gao Cc: Yonghong Zhu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jaben Carsey Reviewed-by: Yonghong Zhu --- BaseTools/Source/Python/AutoGen/ValidCheckingInfoObject.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'BaseTools/Source/Python/AutoGen/ValidCheckingInfoObject.py') diff --git a/BaseTools/Source/Python/AutoGen/ValidCheckingInfoObject.py b/BaseTools/Source/Python/AutoGen/ValidCheckingInfoObject.py index dd78dc5200..2f8f4fac23 100644 --- a/BaseTools/Source/Python/AutoGen/ValidCheckingInfoObject.py +++ b/BaseTools/Source/Python/AutoGen/ValidCheckingInfoObject.py @@ -253,7 +253,7 @@ class VAR_CHECK_PCD_VALID_OBJ(object): def updateStorageWidth(self): try: - self.StorageWidth = int(MAX_SIZE_TYPE[self.PcdDataType]) + self.StorageWidth = MAX_SIZE_TYPE[self.PcdDataType] except: self.StorageWidth = 0 self.ValidData = False -- cgit v1.2.3