]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Library/EfiFileLib/EfiFileLib.c
Fix some VS2003 warnings
[mirror_edk2.git] / EmbeddedPkg / Library / EfiFileLib / EfiFileLib.c
index e98651b14da5c35ee064ca1a6ae342aebb832b21..5effe7fcb99d8d5b495f033e200ba96e52724cae 100644 (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