]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Correct Data type conversion.
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 26 Oct 2010 03:28:44 +0000 (03:28 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 26 Oct 2010 03:28:44 +0000 (03:28 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10981 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/SetupBrowserDxe/Setup.c
MdeModulePkg/Universal/SetupBrowserDxe/Ui.c

index aaff62a6cb692df93502907efb01a6d54cf823bc..740ee50d0b82a3a29c8db96d77ae1242b71f6bac 100644 (file)
@@ -269,8 +269,8 @@ SendForm (
 \r
   gOptionBlockWidth = (CHAR16) ((gScreenDimensions.RightColumn - gScreenDimensions.LeftColumn) / 3);\r
   gHelpBlockWidth   = gOptionBlockWidth;\r
-  gPromptBlockWidth = gOptionBlockWidth + LEFT_SKIPPED_COLUMNS;\r
-  gOptionBlockWidth = gOptionBlockWidth - LEFT_SKIPPED_COLUMNS;\r
+  gPromptBlockWidth = (CHAR16) (gOptionBlockWidth + LEFT_SKIPPED_COLUMNS);\r
+  gOptionBlockWidth = (CHAR16) (gOptionBlockWidth - LEFT_SKIPPED_COLUMNS);\r
 \r
   //\r
   // Initialize the strings for the browser, upon exit of the browser, the strings will be freed\r
index a77d4a9e02de6c90cbfd1eec42de228ef619abaa..0e74c5800dea014a5073c88b7c952d110952ca09 100644 (file)
@@ -1134,7 +1134,7 @@ GetWidth (
     Width -= SUBTITLE_INDENT;\r
   }\r
 \r
-  return Width - LEFT_SKIPPED_COLUMNS;\r
+  return (UINT16) (Width - LEFT_SKIPPED_COLUMNS);\r
 }\r
 \r
 /**\r