diff options
author | Christophe Grenier <[email protected]> | 2009-02-03 09:29:29 +0100 |
---|---|---|
committer | Christophe Grenier <[email protected]> | 2009-02-03 09:29:29 +0100 |
commit | 203df0e3a588f01ebfb60428eb1a5ab258a4969d (patch) | |
tree | 022c7facc406d0eea910638c7b41355964ee8549 /src/ntfsp.c | |
parent | c6e94c6adfe071f4510190069638d70d59675f42 (diff) |
Fix some compilation warnings
Diffstat (limited to 'src/ntfsp.c')
-rw-r--r-- | src/ntfsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ntfsp.c b/src/ntfsp.c index 86d5e9a6..a26eba5d 100644 --- a/src/ntfsp.c +++ b/src/ntfsp.c @@ -87,7 +87,7 @@ unsigned int ntfs_remove_used_space(disk_t *disk_car,const partition_t *partitio { static long long int bmplcn = - (SIZEOF_BUFFER << 3); /* Which bit of $Bitmap is in the buffer */ int byte, bit; - if ((lcn < bmplcn) || (lcn >= (bmplcn + (SIZEOF_BUFFER << 3)))) + if ((bmplcn < 0) || (lcn < (unsigned)bmplcn) || (lcn >= ((unsigned)bmplcn + (SIZEOF_BUFFER << 3)))) { ntfs_attr *attr; /* Mark the buffer as not in use, in case the read is shorter. */ |