aboutsummaryrefslogtreecommitdiff
path: root/gold/reloc.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-10-02 20:52:18 +0000
committerIan Lance Taylor <iant@google.com>2007-10-02 20:52:18 +0000
commitf5c3f2256ff4090c1d4a7d023c327eaed335ec27 (patch)
tree74bc6f47a27c846969a81db10d74492bf42b6db8 /gold/reloc.cc
parente31dcd201e98f9a12d0cc5d77da608f9b4635cd6 (diff)
downloadgdb-f5c3f2256ff4090c1d4a7d023c327eaed335ec27.zip
gdb-f5c3f2256ff4090c1d4a7d023c327eaed335ec27.tar.gz
gdb-f5c3f2256ff4090c1d4a7d023c327eaed335ec27.tar.bz2
From Craig Silverstein: avoid some signed/unsigned warnings from gcc 4.2.
Diffstat (limited to 'gold/reloc.cc')
-rw-r--r--gold/reloc.cc4
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,