]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2008-07-04 Pavel Roskin <proski@gnu.org>
authorproski <proski@localhost>
Fri, 4 Jul 2008 03:01:55 +0000 (03:01 +0000)
committerproski <proski@localhost>
Fri, 4 Jul 2008 03:01:55 +0000 (03:01 +0000)
* kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
prevent warnings.

ChangeLog
kern/ieee1275/init.c

index baed5558a6c8df949181969f02e627c90023c55d..f232e08fe1861f08fe36b2867bd1a4628762b1a5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2008-07-04  Pavel Roskin  <proski@gnu.org>
 
+       * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
+       prevent warnings.
+
        * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
        pointer, which can cause warnings.  Support 64-bit addresses.
 
index 26aca778eb12e579c988a894df0be0636581932c..efa7ca7ae63b7e7702b37c80e28f287c0b209500 100644 (file)
@@ -148,7 +148,7 @@ static void grub_claim_heap (void)
        as a safegard in case that doesn't happen.  It does, however, not protect
        us from corrupting our module area, which extends up to a
        yet-undetermined region above _end.  */
-    if ((addr < _end) && ((addr + len) > _start))
+    if ((addr < (grub_addr_t) _end) && ((addr + len) > (grub_addr_t) _start))
       {
         grub_printf ("Warning: attempt to claim over our own code!\n");
         len = 0;
@@ -273,5 +273,5 @@ grub_get_rtc (void)
 grub_addr_t
 grub_arch_modules_addr (void)
 {
-  return ALIGN_UP(_end + GRUB_MOD_GAP, GRUB_MOD_ALIGN);
+  return ALIGN_UP((grub_addr_t) _end + GRUB_MOD_GAP, GRUB_MOD_ALIGN);
 }