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:
ydong10 2011-04-25 06:18:10 +00:00
parent 9f82599a51
commit fd776d390d
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ Rand32 (
)
{
UINTN Found;
UINTN Bits;
INTN Bits;
UINT64 Tsc1;
UINT64 Tsc2;
UINT64 TscBits;

View File

@ -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));