diff options
Diffstat (limited to 'gold/reloc.cc')
-rw-r--r-- | gold/reloc.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gold/reloc.cc b/gold/reloc.cc index ad3bb05..bf4b2d6 100644 --- a/gold/reloc.cc +++ b/gold/reloc.cc @@ -231,7 +231,7 @@ Sized_relobj<size, big_endian>::do_read_relocs(Read_relocs_data* rd) } size_t reloc_count = sh_size / reloc_size; - if (reloc_count * reloc_size != sh_size) + if (static_cast<off_t>(reloc_count * reloc_size) != sh_size) { fprintf(stderr, _("%s: %s: reloc section %u size %lu uneven"), program_name, this->name().c_str(), i, @@ -478,7 +478,7 @@ Sized_relobj<size, big_endian>::relocate_sections( } size_t reloc_count = sh_size / reloc_size; - if (reloc_count * reloc_size != sh_size) + if (static_cast<off_t>(reloc_count * reloc_size) != sh_size) { fprintf(stderr, _("%s: %s: reloc section %u size %lu uneven"), program_name, this->name().c_str(), i, |