aboutsummaryrefslogtreecommitdiff
path: root/gold
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-10-20 04:35:43 +0000
committerIan Lance Taylor <iant@google.com>2007-10-20 04:35:43 +0000
commit291eaac6ab9f3096984441c288f827626a1e7b4d (patch)
tree8db40c5c153a7ec1fe21ace82b77bd81acc6858d /gold
parentf389a824b8b088c70212bd90203fbb0563de8f06 (diff)
downloadgdb-291eaac6ab9f3096984441c288f827626a1e7b4d.zip
gdb-291eaac6ab9f3096984441c288f827626a1e7b4d.tar.gz
gdb-291eaac6ab9f3096984441c288f827626a1e7b4d.tar.bz2
From Craig Silverstein: add cast to avoid warning.
Diffstat (limited to 'gold')
-rw-r--r--gold/merge.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/merge.cc b/gold/merge.cc
index 80d2d1a..13bfc17 100644
--- a/gold/merge.cc
+++ b/gold/merge.cc
@@ -269,7 +269,7 @@ Output_merge_string<Char_type>::do_add_input_section(Relobj* object,
{
// The length PLEN is in characters, not bytes.
++plen;
- if (i + plen * sizeof(Char_type) >= len)
+ if (i + plen * static_cast<off_t>(sizeof(Char_type)) >= len)
{
object->error(_("entry in mergeable string section "
"not null terminated"));