* grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.

This commit is contained in:
Vladimir Serbinenko 2013-10-25 18:03:36 +02:00
parent a105d3755b
commit 6673d8e7b6
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
2013-10-25 Vladimir Serbinenko <phcoder@gmail.com> 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather

View file

@ -58,7 +58,7 @@ GRUB_MOD_LICENSE ("GPLv3+");
(grub_le_to_cpu32 (data->sblock.log2_block_size) + 10) (grub_le_to_cpu32 (data->sblock.log2_block_size) + 10)
/* The size of an ext2 block in bytes. */ /* 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. */ /* The revision level. */
#define EXT2_REVISION(data) grub_le_to_cpu32 (data->sblock.revision_level) #define EXT2_REVISION(data) grub_le_to_cpu32 (data->sblock.revision_level)