]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Common/Misc.py
BaseTools: replace long by int
[mirror_edk2.git] / BaseTools / Source / Python / Common / Misc.py
index 9967ac470cbb225f234d880834979c4a075a817c..1b8a4bef2ecc73a728835e4d4093687a48f68f37 100644 (file)
@@ -1313,7 +1313,7 @@ def CheckPcdDatum(Type, Value):
         if Value and int(Value, 0) < 0:\r
             return False, "PCD can't be set to negative value[%s] for datum type [%s]" % (Value, Type)\r
         try:\r
-            Value = long(Value, 0)\r
+            Value = int(Value, 0)\r
             if Value > MAX_VAL_TYPE[Type]:\r
                 return False, "Too large PCD value[%s] for datum type [%s]" % (Value, Type)\r
         except:\r