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>
This commit is contained in:
@@ -163,9 +163,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
|
||||
|
||||
|
Reference in New Issue
Block a user