X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;ds=sidebyside;f=MdeModulePkg%2FUniversal%2FSetupBrowserDxe%2FPresentation.c;h=0671558b5738e103e398f3d289b80b81cce5a19a;hb=86b7139e821d7ca8dea69b0791921810cdcc331f;hp=e9fd15e7d904c938de210e08c2a36f806c68e268;hpb=d1a54e2c3eb4dccf2f43ea3e6638f5e1639ad586;p=mirror_edk2.git diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c b/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c index e9fd15e7d9..0671558b57 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c @@ -188,8 +188,8 @@ DisplayPageFrame ( CHAR16 *StrFrontPageBanner; UINTN Row; EFI_SCREEN_DESCRIPTOR LocalScreen; - UINTN RowIdx; - UINTN ColumnIdx; + UINT8 RowIdx; + UINT8 ColumnIdx; ZeroMem (&LocalScreen, sizeof (EFI_SCREEN_DESCRIPTOR)); gST->ConOut->QueryMode (gST->ConOut, gST->ConOut->Mode->Mode, &LocalScreen.RightColumn, &LocalScreen.BottomRow); @@ -231,8 +231,8 @@ DisplayPageFrame ( Alignment < BANNER_COLUMNS + (UINT8) LocalScreen.LeftColumn; Alignment++ ) { - RowIdx = Line - (UINT8) LocalScreen.TopRow; - ColumnIdx = Alignment - (UINT8) LocalScreen.LeftColumn; + RowIdx = (UINT8) (Line - (UINT8) LocalScreen.TopRow); + ColumnIdx = (UINT8) (Alignment - (UINT8) LocalScreen.LeftColumn); ASSERT (RowIdx < BANNER_HEIGHT); ASSERT (ColumnIdx < BANNER_COLUMNS);