mkfs_ext2: fix compile error
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 24 Oct 2009 15:20:29 +0000 (17:20 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 24 Oct 2009 15:20:29 +0000 (17:20 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
util-linux/mkfs_ext2.c

index d89f9460e64635d384d07f7c4170b59a4a27480a..8b435c12041e0ff14397febb88a32df6a9217a6d 100644 (file)
@@ -414,7 +414,7 @@ int mkfs_ext2_main(int argc UNUSED_PARAM, char **argv)
                , inodes_per_group * ngroups, nblocks
                , nreserved, reserved_percent
                , first_block
-               , group_desc_blocks * (blocksize / sizeof(*gd)) * blocks_per_group
+               , group_desc_blocks * (blocksize / (unsigned)sizeof(*gd)) * blocks_per_group
                , ngroups
                , blocks_per_group, blocks_per_group
                , inodes_per_group