diff --git a/EdkCompatibilityPkg/Compatibility/Library/LanguageLib.c b/EdkCompatibilityPkg/Compatibility/Library/LanguageLib.c index 9015865c2f..d8201ce542 100644 --- a/EdkCompatibilityPkg/Compatibility/Library/LanguageLib.c +++ b/EdkCompatibilityPkg/Compatibility/Library/LanguageLib.c @@ -238,7 +238,7 @@ InternalLanguageLibToLower ( ) { for (; Length > 0; Length--, Destination++, Source++) { - *Destination = (*Source >= 'A' && *Source <= 'Z') ? *Source + ('a' - 'A') : *Source; + *Destination = (*Source >= 'A' && *Source <= 'Z') ? (CHAR8)(*Source + ('a' - 'A')) : *Source; } }