X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=BaseTools%2FSource%2FC%2FCommon%2FParseInf.c;h=cd10da9b2dd872ab3b79255013c20becf23bd4a6;hb=a709adfaf0bebbaf3d989f56b500e3985687d0e3;hp=b39c5bde4022527333b78ce2914b0e1952cb8452;hpb=4661d5df04ce804e454509922fd54f45332553da;p=mirror_edk2.git diff --git a/BaseTools/Source/C/Common/ParseInf.c b/BaseTools/Source/C/Common/ParseInf.c index b39c5bde40..cd10da9b2d 100644 --- a/BaseTools/Source/C/Common/ParseInf.c +++ b/BaseTools/Source/C/Common/ParseInf.c @@ -506,7 +506,7 @@ Returns: // Verify string is a hex number // for (Index = 2; Index < strlen (AsciiString); Index++) { - if (isxdigit (AsciiString[Index]) == 0) { + if (isxdigit ((int)AsciiString[Index]) == 0) { return EFI_ABORTED; } } @@ -536,7 +536,7 @@ Returns: // Verify string is a number // for (Index = 0; Index < strlen (AsciiString); Index++) { - if (isdigit (AsciiString[Index]) == 0) { + if (isdigit ((int)AsciiString[Index]) == 0) { return EFI_ABORTED; } }