From 291eaac6ab9f3096984441c288f827626a1e7b4d Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 20 Oct 2007 04:35:43 +0000 Subject: [PATCH] From Craig Silverstein: add cast to avoid warning. --- gold/merge.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gold/merge.cc b/gold/merge.cc index 80d2d1ae1a5..13bfc177848 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")); -- 2.30.2