summaryrefslogtreecommitdiff
path: root/EdkCompatibilityPkg/Compatibility/Library
diff options
context:
space:
mode:
Diffstat (limited to 'EdkCompatibilityPkg/Compatibility/Library')
-rw-r--r--EdkCompatibilityPkg/Compatibility/Library/LanguageLib.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}