Fix some VS2003 warnings

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9873 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
andrewfish 2010-01-30 20:16:45 +00:00
parent d4577dceca
commit ab2a68f47e
1 changed files with 4 additions and 4 deletions

View File

@ -1074,7 +1074,7 @@ EfiTell (
return 0;
}
File->Size = BufferSize;
File->Size = (UINTN)BufferSize;
File->MaxPosition = File->Size;
}
@ -1451,7 +1451,7 @@ EfiWrite (
TempBuffer = File->Buffer;
File->Buffer = AllocatePool (File->CurrentPosition + *BufferSize);
File->Buffer = AllocatePool ((UINTN)(File->CurrentPosition + *BufferSize));
if (File->Buffer == NULL) {
return EFI_OUT_OF_RESOURCES;
}
@ -1460,8 +1460,8 @@ EfiWrite (
FreePool (TempBuffer);
File->Size = File->CurrentPosition + *BufferSize;
File->MaxPosition = File->Size;
File->Size = (UINTN)(File->CurrentPosition + *BufferSize);
File->MaxPosition = (UINT64)File->Size;
}
// Copy in the requested data