summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/Console
diff options
context:
space:
mode:
authorRoy Franz <roy.franz@linaro.org>2015-07-10 03:21:09 +0000
committerniruiyu <niruiyu@Edk2>2015-07-10 03:21:09 +0000
commit5421247d1e4c3ab40a3b5a7f211b49034d6de519 (patch)
tree43f2c2b17638e9e7e3b3cd433a2a802d88c58c36 /MdeModulePkg/Universal/Console
parent2a618e50b510c49441aa4c0bf54827a1571b3793 (diff)
downloadedk2-5421247d1e4c3ab40a3b5a7f211b49034d6de519.zip
edk2-5421247d1e4c3ab40a3b5a7f211b49034d6de519.tar.gz
edk2-5421247d1e4c3ab40a3b5a7f211b49034d6de519.tar.bz2
MdeModulePkg: Fix TerminalDxe VS2013 build failure
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Roy Franz <roy.franz@linaro.org> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17910 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Console')
-rw-r--r--MdeModulePkg/Universal/Console/TerminalDxe/TerminalConIn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Universal/Console/TerminalDxe/TerminalConIn.c b/MdeModulePkg/Universal/Console/TerminalDxe/TerminalConIn.c
index fbaf33b..c216ed9 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;