From: Shumin Qiu Date: Fri, 28 Feb 2014 00:36:03 +0000 (+0000) Subject: Convert the value from 'int' to 'CHAR16' to match the type of variable in ShellProtoc... X-Git-Tag: edk2-stable201903~11692 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=f716d7b8c5aca0d913edd8925808e474df4d3bdb Convert the value from 'int' to 'CHAR16' to match the type of variable in ShellProtocol.c. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15271 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/ShellPkg/Application/Shell/ShellProtocol.c b/ShellPkg/Application/Shell/ShellProtocol.c index 31037bfdc5..116e3f2060 100644 --- a/ShellPkg/Application/Shell/ShellProtocol.c +++ b/ShellPkg/Application/Shell/ShellProtocol.c @@ -3006,7 +3006,7 @@ ToLower ( for (Index = 0; Str[Index] != L'\0'; Index++) { if (Str[Index] >= L'A' && Str[Index] <= L'Z') { - Str[Index] -= (L'A' - L'a'); + Str[Index] -= (CHAR16)(L'A' - L'a'); } } return Str;