mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
9f82599a51
commit
fd776d390d
|
@ -40,7 +40,7 @@ Rand32 (
|
|||
)
|
||||
{
|
||||
UINTN Found;
|
||||
UINTN Bits;
|
||||
INTN Bits;
|
||||
UINT64 Tsc1;
|
||||
UINT64 Tsc2;
|
||||
UINT64 TscBits;
|
||||
|
|
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue