diff --git a/ChangeLog b/ChangeLog index 94cd76a4e..84657594e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-12-15 Vladimir Serbinenko + + * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when + appropriate. + 2013-12-15 Vladimir Serbinenko * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers. diff --git a/grub-core/loader/i386/linux.c b/grub-core/loader/i386/linux.c index fa7ecc8c8..b14dbe714 100644 --- a/grub-core/loader/i386/linux.c +++ b/grub-core/loader/i386/linux.c @@ -851,7 +851,7 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)), if (grub_le_to_cpu16 (linux_params.version) >= 0x0208) { linux_params.v0208.efi_signature = GRUB_LINUX_EFI_SIGNATURE; - linux_params.v0208.efi_system_table = (grub_uint32_t) (unsigned long) grub_efi_system_table; + linux_params.v0208.efi_system_table = (grub_uint32_t) (grub_addr_t) grub_efi_system_table; #ifdef __x86_64__ linux_params.v0208.efi_system_table_hi = (grub_uint32_t) ((grub_uint64_t) grub_efi_system_table >> 32); #endif @@ -859,12 +859,12 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)), else if (grub_le_to_cpu16 (linux_params.version) >= 0x0206) { linux_params.v0206.efi_signature = GRUB_LINUX_EFI_SIGNATURE; - linux_params.v0206.efi_system_table = (grub_uint32_t) (unsigned long) grub_efi_system_table; + linux_params.v0206.efi_system_table = (grub_uint32_t) (grub_addr_t) grub_efi_system_table; } else if (grub_le_to_cpu16 (linux_params.version) >= 0x0204) { linux_params.v0204.efi_signature = GRUB_LINUX_EFI_SIGNATURE_0204; - linux_params.v0204.efi_system_table = (grub_uint32_t) (unsigned long) grub_efi_system_table; + linux_params.v0204.efi_system_table = (grub_uint32_t) (grub_addr_t) grub_efi_system_table; } #endif