Whamcloud - gitweb
libblkid: fix integer width issue in probe_fat
authorTheodore Ts'o <tytso@mit.edu>
Sat, 11 Jan 2014 02:56:29 +0000 (21:56 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 11 Jan 2014 02:56:29 +0000 (21:56 -0500)
Addresses-Coverity-Id: #1049162

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/blkid/probe.c

index b63a509..4b797ab 100644 (file)
@@ -585,8 +585,8 @@ static int probe_fat(struct blkid_probe *probe,
                        __u64 next_off, fat_entry_off;
                        int count;
 
-                       next_sect_off = (__u64) (next - 2) * vs->vs_cluster_size;
-                       next_off = (start_data_sect + next_sect_off) *
+                       next_sect_off = (next - 2) * vs->vs_cluster_size;
+                       next_off = (__u64) (start_data_sect + next_sect_off) *
                                sector_size;
 
                        dir = (struct vfat_dir_entry *)