mirror of https://github.com/acidanthera/audk.git
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:
parent
437dfba25b
commit
8990b82f4f
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue