diff options
author | Anton Altaparmakov <aia21@cantab.net> | 2005-06-25 11:51:58 -0400 |
---|---|---|
committer | Anton Altaparmakov <aia21@cantab.net> | 2005-06-25 11:51:58 -0400 |
commit | 3bd1f4a173a3445f9919c21e775de2d8b9deacf8 (patch) | |
tree | 6b32056b5b63d41fc5d032318ed0f94dbc562288 /fs/ntfs/inode.h | |
parent | ca8fd7a0c6aa835e8014830b290cb965e85ac88e (diff) |
NTFS: Fix several occurences of a bug where we would perform 'var & ~const'
with a 64-bit variable and a int, i.e. 32-bit, constant. This causes
the higher order 32-bits of the 64-bit variable to be zeroed. To fix
this cast the 'const' to the same 64-bit type as 'var'.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
Diffstat (limited to 'fs/ntfs/inode.h')
-rw-r--r-- | fs/ntfs/inode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ntfs/inode.h b/fs/ntfs/inode.h index 6eb99777a722..3de5c0231966 100644 --- a/fs/ntfs/inode.h +++ b/fs/ntfs/inode.h | |||
@@ -110,7 +110,7 @@ struct _ntfs_inode { | |||
110 | u8 block_size_bits; /* Log2 of the above. */ | 110 | u8 block_size_bits; /* Log2 of the above. */ |
111 | u8 vcn_size_bits; /* Log2 of the above. */ | 111 | u8 vcn_size_bits; /* Log2 of the above. */ |
112 | } index; | 112 | } index; |
113 | struct { /* It is a compressed file or an attribute inode. */ | 113 | struct { /* It is a compressed/sparse file/attribute inode. */ |
114 | s64 size; /* Copy of compressed_size from | 114 | s64 size; /* Copy of compressed_size from |
115 | $DATA. */ | 115 | $DATA. */ |
116 | u32 block_size; /* Size of a compression block | 116 | u32 block_size; /* Size of a compression block |