* include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing

brackets.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-12-14 23:57:35 +01:00
parent ca1b552c02
commit a14b16d1f9
2 changed files with 6 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
* include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
brackets.
2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
@ -344,12 +349,6 @@
(grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
(grub_nilfs2_btree_lookup): Ensure buffer alignment.
2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/ext2.c (grub_ext4_find_leaf): MAke buf as pointer to
properly aligned memory.
(grub_ext2_read_block): Ensure buffer alignment.
2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align

View File

@ -142,7 +142,7 @@ typedef grub_int32_t grub_ssize_t;
typedef grub_uint64_t grub_properly_aligned_t;
#define GRUB_PROPERLY_ALIGNED_ARRAY(name, size) grub_properly_aligned_t name[(size + sizeof (grub_properly_aligned_t) - 1) / sizeof (grub_properly_aligned_t)]
#define GRUB_PROPERLY_ALIGNED_ARRAY(name, size) grub_properly_aligned_t name[((size) + sizeof (grub_properly_aligned_t) - 1) / sizeof (grub_properly_aligned_t)]
/* The type for representing a file offset. */
typedef grub_uint64_t grub_off_t;