]> git.proxmox.com Git - mirror_edk2.git/blobdiff - FatPkg/FatPei/FatLiteFmt.h
FatPkg: Explicitly declare FAT_CLUSTER_SPECIAL as unsigned type
[mirror_edk2.git] / FatPkg / FatPei / FatLiteFmt.h
index d4f26f35400c88d04a6432a311983cd2b5f4bf98..9872200090866efb4b93197ee0158a89f496715c 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   FAT format data structures\r
 \r
-Copyright (c) 2006 - 2008, 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
@@ -27,7 +27,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #define FAT_ATTR_ARCHIVE                  0x20\r
 #define FAT_ATTR_LFN                      (FAT_ATTR_READ_ONLY | FAT_ATTR_HIDDEN | FAT_ATTR_SYSTEM | FAT_ATTR_VOLUME_ID)\r
 \r
-#define FAT_CLUSTER_SPECIAL               ((-1 &~0xF) | 0x7)\r
+#define FAT_CLUSTER_SPECIAL               ((MAX_UINT32 &~0xF) | 0x7)\r
 #define FAT_CLUSTER_FREE                  0\r
 #define FAT_CLUSTER_RESERVED              (FAT_CLUSTER_SPECIAL)\r
 #define FAT_CLUSTER_BAD                   (FAT_CLUSTER_SPECIAL)\r