From a14b16d1f95aa7fbb8e223f44b7681cec78d550f Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Wed, 14 Dec 2011 23:57:35 +0100 Subject: [PATCH] * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing brackets. --- ChangeLog | 11 +++++------ include/grub/types.h | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index c6fbf73f0..bb00e383e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-12-14 Vladimir Serbinenko + + * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing + brackets. + 2011-12-14 Vladimir Serbinenko * 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 - - * 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 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align diff --git a/include/grub/types.h b/include/grub/types.h index e61a9a5c6..19a09895b 100644 --- a/include/grub/types.h +++ b/include/grub/types.h @@ -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;