loader/bsd: Fix signed/unsigned comparison
This commit is contained in:
parent
95440b41d3
commit
92bbf25714
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ read_headers (grub_file_t file, const char *filename, Elf_Ehdr *e, char **shdr)
|
|||
return grub_errno;
|
||||
|
||||
if (grub_file_read (file, *shdr, (grub_uint32_t) e->e_shnum * e->e_shentsize)
|
||||
!= (grub_uint32_t) e->e_shnum * e->e_shentsize)
|
||||
!= (grub_ssize_t) ((grub_uint32_t) e->e_shnum * e->e_shentsize))
|
||||
{
|
||||
if (grub_errno)
|
||||
return grub_errno;
|
||||
|
|
Loading…
Reference in a new issue