loader/bsd: Fix signed/unsigned comparison

This commit is contained in:
Colin Watson 2016-01-16 20:40:55 +00:00
parent 95440b41d3
commit 92bbf25714

View file

@ -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;