In FatPkg, cluster-related varibles are declared as unsigned type (e.g.
UINT32/UINTN). To keep the comparisions involving those variables
type-matched, declare the definition FAT_CLUSTER_SPECIAL as unsigned type
explicitly.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
/** @file\r
Definitions for on-disk FAT structures.\r
\r
/** @file\r
Definitions for on-disk FAT structures.\r
\r
-Copyright (c) 2005, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2005 - 2017, Intel Corporation. All rights reserved.<BR>\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
distribution. The full text of the license may be found at\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
distribution. The full text of the license may be found at\r
//\r
// FAT entry values\r
//\r
//\r
// FAT entry values\r
//\r
-#define FAT_CLUSTER_SPECIAL_EXT (-1 & (~0xF))\r
+#define FAT_CLUSTER_SPECIAL_EXT (MAX_UINTN & (~0xF))\r
#define FAT_CLUSTER_SPECIAL ((FAT_CLUSTER_SPECIAL_EXT) | 0x07)\r
#define FAT_CLUSTER_FREE 0\r
#define FAT_CLUSTER_RESERVED (FAT_CLUSTER_SPECIAL)\r
#define FAT_CLUSTER_SPECIAL ((FAT_CLUSTER_SPECIAL_EXT) | 0x07)\r
#define FAT_CLUSTER_FREE 0\r
#define FAT_CLUSTER_RESERVED (FAT_CLUSTER_SPECIAL)\r
/** @file\r
FAT format data structures\r
\r
/** @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
\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
#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_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
#define FAT_CLUSTER_FREE 0\r
#define FAT_CLUSTER_RESERVED (FAT_CLUSTER_SPECIAL)\r
#define FAT_CLUSTER_BAD (FAT_CLUSTER_SPECIAL)\r