]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Compatibility/Library/LanguageLib.c
Replaced ASM_GLOBAL with .global, and add start label for some files to avoid link...
[mirror_edk2.git] / EdkCompatibilityPkg / Compatibility / Library / LanguageLib.c
index 9015865c2f0eab52ed34708c00b9e0ab5847c36b..0595db776fd1f6e81440b8655cc8df5b7aa8b0ee 100644 (file)
 \r
 **/\r
 \r
+#include <Uefi.h>\r
+\r
+#include <Library/LanguageLib.h>\r
+\r
 #include <Library/BaseLib.h>\r
 #include <Library/DebugLib.h>\r
 #include <Library/MemoryAllocationLib.h>\r
-#include <Library/LanguageLib.h>\r
 \r
 //\r
 // Lookup table of ISO639-2 3 character language codes to ISO 639-1 2 character language codes\r
@@ -238,7 +241,7 @@ InternalLanguageLibToLower (
   )\r
 {\r
   for (; Length > 0; Length--, Destination++, Source++) {\r
-    *Destination = (*Source >= 'A' && *Source <= 'Z') ? *Source + ('a' - 'A') : *Source;\r
+    *Destination = (CHAR8)((*Source >= 'A' && *Source <= 'Z') ? *Source + ('a' - 'A') : *Source);\r
   }\r
 }\r
 \r
@@ -496,4 +499,3 @@ ConvertLanguagesRfc4646ToIso639 (
   Iso639Languages[Iso639Index] = '\0';\r
   return Iso639Languages;\r
 }\r
-\r