From e94045a11015f02af1969bda091016e7a3190ea7 Mon Sep 17 00:00:00 2001 From: robertmh Date: Thu, 20 Nov 2008 20:22:04 +0000 Subject: [PATCH] * loader/i386/linux.c (allocate_pages): Fix a warning. --- ChangeLog | 2 ++ loader/i386/linux.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8517aed5a..71a564de0 100644 --- 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 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo. diff --git a/loader/i386/linux.c b/loader/i386/linux.c index 98027b0ed..8b653cf2f 100644 --- a/loader/i386/linux.c +++ b/loader/i386/linux.c @@ -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; }