From ab2a68f47eeb75b6d78103eeeb3f889401a53c5a Mon Sep 17 00:00:00 2001 From: andrewfish Date: Sat, 30 Jan 2010 20:16:45 +0000 Subject: [PATCH] Fix some VS2003 warnings git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9873 6f19259b-4bc3-4df7-8a09-765794883524 --- EmbeddedPkg/Library/EfiFileLib/EfiFileLib.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/EmbeddedPkg/Library/EfiFileLib/EfiFileLib.c b/EmbeddedPkg/Library/EfiFileLib/EfiFileLib.c index e98651b14d..5effe7fcb9 100644 --- a/EmbeddedPkg/Library/EfiFileLib/EfiFileLib.c +++ b/EmbeddedPkg/Library/EfiFileLib/EfiFileLib.c @@ -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 -- 2.39.2