From f7a14a9b996ff7b20984d887d4a5a5c3f29f6d84 Mon Sep 17 00:00:00 2001 From: lgao4 Date: Tue, 26 Oct 2010 03:28:44 +0000 Subject: [PATCH] Correct Data type conversion. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10981 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/SetupBrowserDxe/Setup.c | 4 ++-- MdeModulePkg/Universal/SetupBrowserDxe/Ui.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c b/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c index aaff62a6cb..740ee50d0b 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c @@ -269,8 +269,8 @@ SendForm ( gOptionBlockWidth = (CHAR16) ((gScreenDimensions.RightColumn - gScreenDimensions.LeftColumn) / 3); gHelpBlockWidth = gOptionBlockWidth; - gPromptBlockWidth = gOptionBlockWidth + LEFT_SKIPPED_COLUMNS; - gOptionBlockWidth = gOptionBlockWidth - LEFT_SKIPPED_COLUMNS; + gPromptBlockWidth = (CHAR16) (gOptionBlockWidth + LEFT_SKIPPED_COLUMNS); + gOptionBlockWidth = (CHAR16) (gOptionBlockWidth - LEFT_SKIPPED_COLUMNS); // // Initialize the strings for the browser, upon exit of the browser, the strings will be freed diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c b/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c index a77d4a9e02..0e74c5800d 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c @@ -1134,7 +1134,7 @@ GetWidth ( Width -= SUBTITLE_INDENT; } - return Width - LEFT_SKIPPED_COLUMNS; + return (UINT16) (Width - LEFT_SKIPPED_COLUMNS); } /** -- 2.39.2