]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/Common/CommonLib.c
BaseTools/CommonLib: use explicit 64-bit type in Strtoi()
[mirror_edk2.git] / BaseTools / Source / C / Common / CommonLib.c
index 7c559bc3c222869a1a822a9935a62a376e9642ee..4a28f635f3a8529d506893592b80e225aac3ce55 100644 (file)
@@ -2252,9 +2252,9 @@ Strtoi (
   )\r
 {\r
   if (IsHexStr (Str)) {\r
-    return StrHexToUintn (Str);\r
+    return (UINTN)StrHexToUint64 (Str);\r
   } else {\r
-    return StrDecimalToUintn (Str);\r
+    return (UINTN)StrDecimalToUint64 (Str);\r
   }\r
 }\r
 \r