EmuVariableFvbRuntimeDxe: Fix warnings generated by VS2005

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9319 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jljusten 2009-09-26 22:34:08 +00:00
parent 9607962def
commit 02e124209e
1 changed files with 4 additions and 4 deletions

View File

@ -189,7 +189,7 @@ FvbProtocolGetBlockSize (
FvbDevice = FVB_DEVICE_FROM_THIS (This);
*BlockSize = FvbDevice->BlockSize;
*NumberOfBlocks = 2 - Lba;
*NumberOfBlocks = (UINTN) (2 - (UINTN) Lba);
return EFI_SUCCESS;
}
@ -364,7 +364,7 @@ FvbProtocolEraseBlocks (
if ((Erase & BIT0) != 0) {
EraseSize = EraseSize + FvbDevice->BlockSize;
} else {
ErasePtr = ErasePtr + FvbDevice->BlockSize;
ErasePtr = (VOID*) ((UINT8*)ErasePtr + FvbDevice->BlockSize);
}
if ((Erase & BIT1) != 0) {
@ -468,7 +468,7 @@ FvbProtocolWrite (
FvbDataPtr =
(UINT8*) FvbDevice->BufferPtr +
MultU64x32 (Lba, FvbDevice->BlockSize) +
MultU64x32 (Lba, (UINT32) FvbDevice->BlockSize) +
Offset;
if (*NumBytes > 0) {
@ -552,7 +552,7 @@ FvbProtocolRead (
FvbDataPtr =
(UINT8*) FvbDevice->BufferPtr +
MultU64x32 (Lba, FvbDevice->BlockSize) +
MultU64x32 (Lba, (UINT32) FvbDevice->BlockSize) +
Offset;
if (*NumBytes > 0) {