* grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
multiplication rather than division.
This commit is contained in:
parent
ea811130ea
commit
46ecfc49b6
2 changed files with 6 additions and 1 deletions
|
@ -594,7 +594,7 @@ SUFFIX(grub_openbsd_find_ramdisk) (grub_file_t file,
|
|||
return grub_errno;
|
||||
}
|
||||
|
||||
for (i = 0, sym = syms; i < symsize / symentsize;
|
||||
for (i = 0, sym = syms; i * symentsize < symsize;
|
||||
i++, sym = (Elf_Sym *) ((char *) sym + symentsize))
|
||||
{
|
||||
if (ELF_ST_TYPE (sym->st_info) != STT_OBJECT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue