diff options
author | Ian Lance Taylor <iant@google.com> | 2007-10-02 20:52:18 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-10-02 20:52:18 +0000 |
commit | f5c3f2256ff4090c1d4a7d023c327eaed335ec27 (patch) | |
tree | 74bc6f47a27c846969a81db10d74492bf42b6db8 /gold/object.cc | |
parent | e31dcd201e98f9a12d0cc5d77da608f9b4635cd6 (diff) | |
download | gdb-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/object.cc')
-rw-r--r-- | gold/object.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/object.cc b/gold/object.cc index 3051909..2dbd0f2 100644 --- a/gold/object.cc +++ b/gold/object.cc @@ -502,7 +502,7 @@ Sized_relobj<size, big_endian>::do_add_symbols(Symbol_table* symtab, const int sym_size = This::sym_size; size_t symcount = sd->symbols_size / sym_size; - if (symcount * sym_size != sd->symbols_size) + if (static_cast<off_t>(symcount * sym_size) != sd->symbols_size) { fprintf(stderr, _("%s: %s: size of symbols is not multiple of symbol size\n"), |