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.
This commit is contained in:
proski 2009-05-14 03:59:10 +00:00
parent 8090fc012a
commit ac96388340
2 changed files with 4 additions and 1 deletions

View File

@ -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.

View 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)