[1922] * loader/i386/linux.c (allocate_pages): Fix a warning.

Robert Millan <[email protected]>
Newsgroups gmane.comp.boot-loaders.grub.cvs
Message-ID <[email protected]>
Revision: 1922
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=1922
Author:   robertmh
Date:     2008-11-20 20:22:04 +0000 (Thu, 20 Nov 2008)

Log Message:
-----------
        * loader/i386/linux.c (allocate_pages): Fix a warning.

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/loader/i386/linux.c

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog	2008-11-20 19:22:20 UTC (rev 1921)
+++ trunk/grub2/ChangeLog	2008-11-20 20:22:04 UTC (rev 1922)
@@ -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  <[email protected]>
 
 	* loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.

Modified: trunk/grub2/loader/i386/linux.c
===================================================================
--- trunk/grub2/loader/i386/linux.c	2008-11-20 19:22:20 UTC (rev 1921)
+++ trunk/grub2/loader/i386/linux.c	2008-11-20 20:22:04 UTC (rev 1922)
@@ -169,7 +169,7 @@
 	  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;
 	}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.