* grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use

multiplication rather than division.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-03-10 20:37:41 +01:00
parent ea811130ea
commit 46ecfc49b6
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
multiplication rather than division.
2013-03-10 Vladimir Serbinenko <phcoder@gmail.com> 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather

View file

@ -594,7 +594,7 @@ SUFFIX(grub_openbsd_find_ramdisk) (grub_file_t file,
return grub_errno; 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)) i++, sym = (Elf_Sym *) ((char *) sym + symentsize))
{ {
if (ELF_ST_TYPE (sym->st_info) != STT_OBJECT) if (ELF_ST_TYPE (sym->st_info) != STT_OBJECT)