]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2009-05-13 Pavel Roskin <proski@gnu.org>
authorproski <proski@localhost>
Thu, 14 May 2009 03:59:10 +0000 (03:59 +0000)
committerproski <proski@localhost>
Thu, 14 May 2009 03:59:10 +0000 (03:59 +0000)
* loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
grub_uint32_t to avoid a warning.

ChangeLog
loader/i386/multiboot.c

index 4f8dc787b4eb154104d65efeb74b17952bda6013..360b73a854e4a38e7701eaa70a1f32566a0eccba 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2009-05-13  Pavel Roskin  <proski@gnu.org>
 
+       * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
+       grub_uint32_t to avoid a warning.
+
        * loader/i386/linux.c (allocate_pages): When assigning
        real_mode_mem, cast through grub_size_t to fix a warning.  The
        code already makes sure that the value would fit a pointer.
index 73dee4397d11dbdd99c865a7f4ea5fd51a23fe1f..a59085c544ed898be82a7c6f52a8070827de0146 100644 (file)
@@ -320,7 +320,7 @@ grub_multiboot (int argc, char *argv[])
 
   /* FIXME: grub_uint32_t will break for addresses above 4 GiB, but is mandated
      by the spec.  Is there something we can do about it?  */
-  mbi->mmap_addr = mmap_addr (grub_multiboot_payload_dest);
+  mbi->mmap_addr = (grub_uint32_t) mmap_addr (grub_multiboot_payload_dest);
   mbi->flags |= MULTIBOOT_INFO_MEM_MAP;
 
   if (grub_multiboot_payload_dest >= grub_multiboot_payload_orig)