diff options
author | Hao Wu <hao.a.wu@intel.com> | 2016-11-17 15:57:43 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2017-01-12 21:26:27 +0800 |
commit | 4c5ee6a694aa755c90bcbcded88cf50758b5cb4d (patch) | |
tree | f4459e480461e7b39846dc58791b1dba744e7902 /FatPkg/EnhancedFatDxe | |
parent | fbda8a344bafff20d31ceb649a220e4aaa465468 (diff) | |
download | edk2-4c5ee6a694aa755c90bcbcded88cf50758b5cb4d.zip edk2-4c5ee6a694aa755c90bcbcded88cf50758b5cb4d.tar.gz edk2-4c5ee6a694aa755c90bcbcded88cf50758b5cb4d.tar.bz2 |
FatPkg: Explicitly declare FAT_CLUSTER_SPECIAL as unsigned type
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>
Diffstat (limited to 'FatPkg/EnhancedFatDxe')
-rw-r--r-- | FatPkg/EnhancedFatDxe/FatFileSystem.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/FatPkg/EnhancedFatDxe/FatFileSystem.h b/FatPkg/EnhancedFatDxe/FatFileSystem.h index a4d4405..80cb802 100644 --- a/FatPkg/EnhancedFatDxe/FatFileSystem.h +++ b/FatPkg/EnhancedFatDxe/FatFileSystem.h @@ -1,7 +1,7 @@ /** @file
Definitions for on-disk FAT structures.
-Copyright (c) 2005, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2005 - 2017, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are licensed and made available
under the terms and conditions of the BSD License which accompanies this
distribution. The full text of the license may be found at
@@ -26,7 +26,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. //
// FAT entry values
//
-#define FAT_CLUSTER_SPECIAL_EXT (-1 & (~0xF))
+#define FAT_CLUSTER_SPECIAL_EXT (MAX_UINTN & (~0xF))
#define FAT_CLUSTER_SPECIAL ((FAT_CLUSTER_SPECIAL_EXT) | 0x07)
#define FAT_CLUSTER_FREE 0
#define FAT_CLUSTER_RESERVED (FAT_CLUSTER_SPECIAL)
|