OptionRomPkg FrameBufferBltLib: Fix build warning with ICC

mBltLibBytesPerPixel is UINTN, and therefore it will always
be >= 0.  Instead an ASSERT is used to verify that MergedMasks
is non-zero.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11581 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jljusten 2011-04-22 22:22:05 +00:00
parent 437dfba25b
commit 8990b82f4f
1 changed files with 2 additions and 3 deletions

View File

@ -65,9 +65,8 @@ ConfigurePixelBitMaskFormat (
}
MergedMasks = (UINT32) (MergedMasks | Masks[3]);
mBltLibBytesPerPixel = HighBitSet32 (MergedMasks);
ASSERT (mBltLibBytesPerPixel >= 0);
mBltLibBytesPerPixel = (mBltLibBytesPerPixel + 7) / 8;
ASSERT (MergedMasks != 0);
mBltLibBytesPerPixel = (HighBitSet32 (MergedMasks) + 7) / 8;
DEBUG ((EFI_D_INFO, "Bytes per pixel: %d\n", mBltLibBytesPerPixel));