diff --git a/ChangeLog b/ChangeLog index 299d51b4d..6fd1989b9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-10-25 Vladimir Serbinenko + + * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned. + 2013-10-25 Vladimir Serbinenko * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather diff --git a/grub-core/fs/ext2.c b/grub-core/fs/ext2.c index 18429ac51..46fb76f55 100644 --- a/grub-core/fs/ext2.c +++ b/grub-core/fs/ext2.c @@ -58,7 +58,7 @@ GRUB_MOD_LICENSE ("GPLv3+"); (grub_le_to_cpu32 (data->sblock.log2_block_size) + 10) /* The size of an ext2 block in bytes. */ -#define EXT2_BLOCK_SIZE(data) (1 << LOG2_BLOCK_SIZE (data)) +#define EXT2_BLOCK_SIZE(data) (1U << LOG2_BLOCK_SIZE (data)) /* The revision level. */ #define EXT2_REVISION(data) grub_le_to_cpu32 (data->sblock.revision_level)