В Wed, 26 Feb 2014 10:31:05 -0800
Ram Pai <linux...@us.ibm.com> пишет:

> From: Anton Blanchard <an...@samba.org>
> 
> If the target pointer size doesn't match the IEEE1275 cell size, we
> need to cast twice to avoid a warning.
> 
> >  
> +#define IEEE1275_ADDR(x)         (grub_uint32_t)(grub_addr_t)(x)
> +


Should not this be conditional on sizeof(grub_ieee1275_cell_t)?
Otherwise it seems to truncate value on platform where it is 64 bit
(sparc64)?

Is it possible that pointer does exceed 32 bits?

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to