diff options
author | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-04-25 06:18:10 +0000 |
---|---|---|
committer | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-04-25 06:18:10 +0000 |
commit | fd776d390d63926dad53fb8addcfdbfc76f793b0 (patch) | |
tree | 5cd00b9d520b037e81a01eb2f18a29c412a52c15 /OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.c | |
parent | 9f82599a514dcb57912f2da16eb05c37499da715 (diff) | |
download | edk2-platforms-fd776d390d63926dad53fb8addcfdbfc76f793b0.tar.xz |
Refine code to make code run more safely.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11583 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.c')
-rw-r--r-- | OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.c b/OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.c index cfd5212d48..2df840af15 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));
|