]> git.proxmox.com Git - mirror_edk2.git/blobdiff - FatPkg/FatPei/FatLiteAccess.c
FatPkg: Refine casting expression result to bigger size
[mirror_edk2.git] / FatPkg / FatPei / FatLiteAccess.c
index 110634508bf497905c261da81f7dc77e3019ce14..a92c5bff9983d55a9b048c5b225e04fca1bc523f 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   FAT file system access routines for FAT recovery PEIM\r
 \r
 /** @file\r
   FAT file system access routines for FAT recovery PEIM\r
 \r
-Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials are licensed and made available\r
 under the terms and conditions of the BSD License which accompanies this\r
 \r
 This program and the accompanying materials are licensed and made available\r
 under the terms and conditions of the BSD License which accompanies this\r
@@ -393,7 +393,7 @@ FatReadFile (
   } else {\r
 \r
     if ((File->Attributes & FAT_ATTR_DIRECTORY) == 0) {\r
   } else {\r
 \r
     if ((File->Attributes & FAT_ATTR_DIRECTORY) == 0) {\r
-      Size = Size < (File->FileSize - File->CurrentPos) ? Size : (UINTN) (File->FileSize - File->CurrentPos);\r
+      Size = Size < (File->FileSize - File->CurrentPos) ? Size : (File->FileSize - File->CurrentPos);\r
     }\r
     //\r
     // This is a normal cluster based file\r
     }\r
     //\r
     // This is a normal cluster based file\r