* grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
appropriate.
This commit is contained in:
parent
8ae6704517
commit
48ba5c0c86
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
|
||||
appropriate.
|
||||
|
||||
2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
|
||||
|
|
|
@ -141,7 +141,7 @@ grub_elfXX_load (grub_elf_t elf, const char *filename,
|
|||
}
|
||||
|
||||
if (phdr->p_filesz < phdr->p_memsz)
|
||||
grub_memset ((void *) (long) (load_addr + phdr->p_filesz),
|
||||
grub_memset ((void *) (grub_addr_t) (load_addr + phdr->p_filesz),
|
||||
0, phdr->p_memsz - phdr->p_filesz);
|
||||
|
||||
load_size += phdr->p_memsz;
|
||||
|
|
Loading…
Reference in a new issue