]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Pkcs7Sign/Pkcs7Sign.py
BaseTools: replace long by int
[mirror_edk2.git] / BaseTools / Source / Python / Pkcs7Sign / Pkcs7Sign.py
index a44781f2e8399fee455244cd1d45147abb8803bd..c5c99d94ef502c35d3c784c4eb9c2572a5a34efb 100644 (file)
@@ -141,11 +141,11 @@ if __name__ == '__main__':
 \r
   try:\r
     if args.MonotonicCountStr.upper().startswith('0X'):\r
-      args.MonotonicCountValue = (long)(args.MonotonicCountStr, 16)\r
+      args.MonotonicCountValue = int(args.MonotonicCountStr, 16)\r
     else:\r
-      args.MonotonicCountValue = (long)(args.MonotonicCountStr)\r
+      args.MonotonicCountValue = int(args.MonotonicCountStr)\r
   except:\r
-    args.MonotonicCountValue = (long)(0)\r
+    args.MonotonicCountValue = int(0)\r
 \r
   if args.Encode:\r
     #\r
@@ -251,9 +251,9 @@ if __name__ == '__main__':
       sys.exit(1)\r
     else:\r
       if args.SignatureSizeStr.upper().startswith('0X'):\r
-        SignatureSize = (long)(args.SignatureSizeStr, 16)\r
+        SignatureSize = int(args.SignatureSizeStr, 16)\r
       else:\r
-        SignatureSize = (long)(args.SignatureSizeStr)\r
+        SignatureSize = int(args.SignatureSizeStr)\r
     if SignatureSize < 0:\r
         print("ERROR: The value of option --signature-size can't be set to negative value!")\r
         sys.exit(1)\r