diff options
author | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-01-30 20:16:45 +0000 |
---|---|---|
committer | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-01-30 20:16:45 +0000 |
commit | ab2a68f47eeb75b6d78103eeeb3f889401a53c5a (patch) | |
tree | de9ee360c63a6647724783aebe8d08b166800832 /EmbeddedPkg | |
parent | d4577dceca346244bf99aed328444e4c069147d1 (diff) | |
download | edk2-platforms-ab2a68f47eeb75b6d78103eeeb3f889401a53c5a.tar.xz |
Fix some VS2003 warnings
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9873 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EmbeddedPkg')
-rw-r--r-- | EmbeddedPkg/Library/EfiFileLib/EfiFileLib.c | 8 |
1 files 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 |