From: Ian Lance Taylor Date: Sat, 20 Oct 2007 04:35:43 +0000 (+0000) Subject: From Craig Silverstein: add cast to avoid warning. X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=c11b00c04ea9f31c7ead8e9f9c11ac1acc8a22be;p=pf3gnuchains%2Fpf3gnuchains3x.git From Craig Silverstein: add cast to avoid warning. --- diff --git a/gold/merge.cc b/gold/merge.cc index 80d2d1ae1a..13bfc17784 100644 --- a/gold/merge.cc +++ b/gold/merge.cc @@ -269,7 +269,7 @@ Output_merge_string::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(sizeof(Char_type)) >= len) { object->error(_("entry in mergeable string section " "not null terminated"));