summaryrefslogtreecommitdiffstats
path: root/src/ntfs_utl.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-02-03 09:29:29 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-02-03 09:29:29 +0100
commit203df0e3a588f01ebfb60428eb1a5ab258a4969d (patch)
tree022c7facc406d0eea910638c7b41355964ee8549 /src/ntfs_utl.c
parentc6e94c6adfe071f4510190069638d70d59675f42 (diff)
Fix some compilation warnings
Diffstat (limited to 'src/ntfs_utl.c')
-rw-r--r--src/ntfs_utl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ntfs_utl.c b/src/ntfs_utl.c
index c4e3582..a82dfb8 100644
--- a/src/ntfs_utl.c
+++ b/src/ntfs_utl.c
@@ -159,7 +159,7 @@ int utils_cluster_in_use(ntfs_volume *vol, long long lcn)
}
/* Does lcn lie in the section of $Bitmap we already have cached? */
- if ((bmplcn <0 ) || (lcn < bmplcn) || (lcn >= (bmplcn + (sizeof(buffer) << 3)))) {
+ if ((bmplcn <0 ) ||(lcn < (unsigned)bmplcn) || (lcn >= ((unsigned)bmplcn + ((unsigned)sizeof(buffer) << 3)))) {
ntfs_attr *attr;
#ifdef DEBUG_NTFS
log_debug("Bit lies outside cache.\n");