From 9eec9699b9ae02140dda144a099bf6510c8ed101 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Sat, 23 Nov 2013 15:35:01 +0100 Subject: [PATCH] * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation): Add missing cast to silence warning. --- ChangeLog | 5 +++++ grub-core/kern/mips/arc/init.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index cf8513081..092bd5e87 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-11-23 Vladimir Serbinenko + + * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation): + Add missing cast to silence warning. + 2013-11-23 Keshav Padram Amburay * util/grub-install.c (update_nvram): Support --no-nvram flag diff --git a/grub-core/kern/mips/arc/init.c b/grub-core/kern/mips/arc/init.c index cb6c22848..b4f50e496 100644 --- a/grub-core/kern/mips/arc/init.c +++ b/grub-core/kern/mips/arc/init.c @@ -396,8 +396,8 @@ grub_machine_get_bootlocation (char **device, char **path) const char *syspart = 0; if (GRUB_ARC_SYSTEM_PARAMETER_BLOCK->firmware_vector_length - >= ((char *) (&GRUB_ARC_FIRMWARE_VECTOR->getenvironmentvariable + 1) - - (char *) GRUB_ARC_FIRMWARE_VECTOR) + >= (unsigned) ((char *) (&GRUB_ARC_FIRMWARE_VECTOR->getenvironmentvariable + 1) + - (char *) GRUB_ARC_FIRMWARE_VECTOR) && GRUB_ARC_FIRMWARE_VECTOR->getenvironmentvariable) syspart = GRUB_ARC_FIRMWARE_VECTOR->getenvironmentvariable ("SystemPartition"); if (!syspart)