summaryrefslogtreecommitdiffstats
path: root/FatPkg/EnhancedFatDxe/ReadWrite.c
diff options
context:
space:
mode:
authorAndrew Fish <afish@apple.com>2010-01-17 04:44:59 +0000
committerJordan Justen <jordan.l.justen@intel.com>2016-04-06 23:22:43 -0700
commitc4ba493edf26eb3b90c89089d28d70dc8e7775b2 (patch)
treeb3e6acf71539b57dbbac171a0980e101192ed485 /FatPkg/EnhancedFatDxe/ReadWrite.c
parentdcc3386bd1e7239cc38afa3febe28a8c08c011e5 (diff)
downloadedk2-c4ba493edf26eb3b90c89089d28d70dc8e7775b2.tar.gz
edk2-c4ba493edf26eb3b90c89089d28d70dc8e7775b2.tar.bz2
edk2-c4ba493edf26eb3b90c89089d28d70dc8e7775b2.zip
Fix a warning issue with ARMCC.
(based on FatPkg commit 5613b9c6a6fdf762ef26f30f22ecabc487e22eb4) [jordan.l.justen@intel.com: Use script to relicense to 2-clause BSD] Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Andrew Fish <afish@apple.com> Acked-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'FatPkg/EnhancedFatDxe/ReadWrite.c')
-rw-r--r--FatPkg/EnhancedFatDxe/ReadWrite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/FatPkg/EnhancedFatDxe/ReadWrite.c b/FatPkg/EnhancedFatDxe/ReadWrite.c
index 956db27a86..fb9e8026f1 100644
--- a/FatPkg/EnhancedFatDxe/ReadWrite.c
+++ b/FatPkg/EnhancedFatDxe/ReadWrite.c
@@ -117,7 +117,7 @@ Returns:
//
// Set the position
//
- if (Position == -1) {
+ if (Position == (UINT64)-1) {
Position = OFile->FileSize;
}
//