]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Convert the value from 'int' to 'CHAR16' to match the type of variable in ShellProtoc...
authorShumin Qiu <shumin.qiu@intel.com>
Fri, 28 Feb 2014 00:36:03 +0000 (00:36 +0000)
committershenshushi <shenshushi@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 28 Feb 2014 00:36:03 +0000 (00:36 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Shumin Qiu <shumin.qiu@intel.com>
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15271 6f19259b-4bc3-4df7-8a09-765794883524

ShellPkg/Application/Shell/ShellProtocol.c

index 31037bfdc5d906d55ef524357006e7c334ddce34..116e3f2060358525b5c0f61360891d2567e3a864 100644 (file)
@@ -3006,7 +3006,7 @@ ToLower (
 \r
   for (Index = 0; Str[Index] != L'\0'; Index++) {\r
     if (Str[Index] >= L'A' && Str[Index] <= L'Z') {\r
-      Str[Index] -= (L'A' - L'a');\r
+      Str[Index] -= (CHAR16)(L'A' - L'a');\r
     }\r
   }\r
   return Str;\r