diff options
author | Yunhua Feng <yunhuax.feng@intel.com> | 2018-12-03 10:29:40 +0800 |
---|---|---|
committer | Feng, Bob C <bob.c.feng@intel.com> | 2019-02-01 11:09:18 +0800 |
commit | af881abc6537298feade1c0b01a2a77224635647 (patch) | |
tree | f7166d3a4dbf8604d418df17acf39b636b40b0aa /BaseTools/Source/Python/Common | |
parent | 1d2aa01cdf4b853a79871bd13588c71a0eb3d601 (diff) | |
download | edk2-af881abc6537298feade1c0b01a2a77224635647.tar.gz edk2-af881abc6537298feade1c0b01a2a77224635647.tar.bz2 edk2-af881abc6537298feade1c0b01a2a77224635647.zip |
BaseTools: replace long by int
replace long by int
Because the long() was not exist in Python3
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Common')
-rw-r--r-- | BaseTools/Source/Python/Common/Misc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/Common/Misc.py b/BaseTools/Source/Python/Common/Misc.py index 9967ac470c..1b8a4bef2e 100644 --- a/BaseTools/Source/Python/Common/Misc.py +++ b/BaseTools/Source/Python/Common/Misc.py @@ -1313,7 +1313,7 @@ def CheckPcdDatum(Type, Value): if Value and int(Value, 0) < 0:
return False, "PCD can't be set to negative value[%s] for datum type [%s]" % (Value, Type)
try:
- Value = long(Value, 0)
+ Value = int(Value, 0)
if Value > MAX_VAL_TYPE[Type]:
return False, "Too large PCD value[%s] for datum type [%s]" % (Value, Type)
except:
|