summaryrefslogtreecommitdiff
path: root/OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.c
diff options
context:
space:
mode:
Diffstat (limited to 'OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.c')
-rw-r--r--OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.c b/OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.c
index cfd5212d4..2df840af1 100644
--- a/OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.c
+++ b/OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.c
@@ -66,7 +66,7 @@ ConfigurePixelBitMaskFormat (
MergedMasks = (UINT32) (MergedMasks | Masks[3]);
ASSERT (MergedMasks != 0);
- mBltLibBytesPerPixel = (HighBitSet32 (MergedMasks) + 7) / 8;
+ mBltLibBytesPerPixel = (UINTN) ((HighBitSet32 (MergedMasks) + 7) / 8);
DEBUG ((EFI_D_INFO, "Bytes per pixel: %d\n", mBltLibBytesPerPixel));