From 5421247d1e4c3ab40a3b5a7f211b49034d6de519 Mon Sep 17 00:00:00 2001 From: Roy Franz Date: Fri, 10 Jul 2015 03:21:09 +0000 Subject: MdeModulePkg: Fix TerminalDxe VS2013 build failure Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Roy Franz Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17910 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/Console/TerminalDxe/TerminalConIn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'MdeModulePkg/Universal/Console') diff --git a/MdeModulePkg/Universal/Console/TerminalDxe/TerminalConIn.c b/MdeModulePkg/Universal/Console/TerminalDxe/TerminalConIn.c index fbaf33ba45..c216ed900f 100644 --- a/MdeModulePkg/Universal/Console/TerminalDxe/TerminalConIn.c +++ b/MdeModulePkg/Universal/Console/TerminalDxe/TerminalConIn.c @@ -1568,9 +1568,9 @@ UnicodeToEfiKey ( if (TerminalDevice->TerminalType == TTYTERMTYPE) { if (UnicodeChar == '~' && TerminalDevice->TtyEscapeIndex <= 2) { - UINTN EscCode; + UINT16 EscCode; TerminalDevice->TtyEscapeStr[TerminalDevice->TtyEscapeIndex] = 0; /* Terminate string */ - EscCode = StrDecimalToUintn(TerminalDevice->TtyEscapeStr); + EscCode = (UINT16) StrDecimalToUintn(TerminalDevice->TtyEscapeStr); switch (EscCode) { case 3: Key.ScanCode = SCAN_DELETE; -- cgit v1.2.3