summaryrefslogtreecommitdiff
path: root/OvmfPkg/EmuVariableFvbRuntimeDxe
diff options
context:
space:
mode:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2009-09-26 22:34:08 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2009-09-26 22:34:08 +0000
commit02e124209e5074f5b96e4a7de312049fb54c07a9 (patch)
tree5eca1e7fb33470768b972dc636da1e15d8b76f70 /OvmfPkg/EmuVariableFvbRuntimeDxe
parent9607962def9f847c243b9fecb590c0cf94eec4fc (diff)
downloadedk2-platforms-02e124209e5074f5b96e4a7de312049fb54c07a9.tar.xz
EmuVariableFvbRuntimeDxe: Fix warnings generated by VS2005
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9319 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg/EmuVariableFvbRuntimeDxe')
-rw-r--r--OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.c b/OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.c
index 48d0555abc..ed17bdb41a 100644
--- a/OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.c
+++ b/OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.c
@@ -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) {