]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* loader/i386/linux.c (allocate_pages): Fix a warning.
authorrobertmh <robertmh@localhost>
Thu, 20 Nov 2008 20:22:04 +0000 (20:22 +0000)
committerrobertmh <robertmh@localhost>
Thu, 20 Nov 2008 20:22:04 +0000 (20:22 +0000)
ChangeLog
loader/i386/linux.c

index 8517aed5acd2374bd93d4147b6174d5950082a0a..71a564de035c56b63ee73d2a28b911c86c1e621a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,8 @@
        * util/grub.d/00_header.in: Likewise.
        * util/update-grub_lib.in: Likewise.
 
+       * loader/i386/linux.c (allocate_pages): Fix a warning.
+
 2008-11-19  Robert Millan  <rmh@aybabtu.com>
 
        * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
index 98027b0ed274c023a5c635858a145f4bed018325..8b653cf2f96445c527db4552a83a4a57b867fed6 100644 (file)
@@ -169,7 +169,7 @@ allocate_pages (grub_size_t prot_size)
          if (real_size + mmap_size > size)
            return 0;
 
-         real_mode_mem = (addr + size) - (real_size + mmap_size);
+         real_mode_mem = (void *) ((addr + size) - (real_size + mmap_size));
          return 1;
        }