summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Rsa2048Sha256Sign
diff options
context:
space:
mode:
authorYunhua Feng <yunhuax.feng@intel.com>2018-10-10 11:00:31 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-10-13 09:50:42 +0800
commit8371d87412bc1dae454dcc570691fc0d63e710b4 (patch)
treefa1c0a276bfedde65ef3f28d129af4c00d9e2e98 /BaseTools/Source/Python/Rsa2048Sha256Sign
parent261eee25de664dcef2d99b6365b16c9bc444143f (diff)
downloadedk2-8371d87412bc1dae454dcc570691fc0d63e710b4.tar.gz
edk2-8371d87412bc1dae454dcc570691fc0d63e710b4.tar.bz2
edk2-8371d87412bc1dae454dcc570691fc0d63e710b4.zip
BaseTools: Rename long() to int()
Because the long() function was not exist in Python3. 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> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Rsa2048Sha256Sign')
-rw-r--r--BaseTools/Source/Python/Rsa2048Sha256Sign/Rsa2048Sha256Sign.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/BaseTools/Source/Python/Rsa2048Sha256Sign/Rsa2048Sha256Sign.py b/BaseTools/Source/Python/Rsa2048Sha256Sign/Rsa2048Sha256Sign.py
index 50a442dd4a..2856359631 100644
--- a/BaseTools/Source/Python/Rsa2048Sha256Sign/Rsa2048Sha256Sign.py
+++ b/BaseTools/Source/Python/Rsa2048Sha256Sign/Rsa2048Sha256Sign.py
@@ -162,9 +162,9 @@ if __name__ == '__main__':
if args.MonotonicCountStr:
try:
if args.MonotonicCountStr.upper().startswith('0X'):
- args.MonotonicCountValue = (long)(args.MonotonicCountStr, 16)
+ args.MonotonicCountValue = (int)(args.MonotonicCountStr, 16)
else:
- args.MonotonicCountValue = (long)(args.MonotonicCountStr)
+ args.MonotonicCountValue = (int)(args.MonotonicCountStr)
except:
pass