From Craig Silverstein: add cast to avoid warning.
authorIan Lance Taylor <iant@google.com>
Sat, 20 Oct 2007 04:35:43 +0000 (04:35 +0000)
committerIan Lance Taylor <iant@google.com>
Sat, 20 Oct 2007 04:35:43 +0000 (04:35 +0000)
gold/merge.cc

index 80d2d1ae1a51995d07c1612b2676693d2c50abc5..13bfc177848b9cfede7f98aae6b08aaf596d2fad 100644 (file)
@@ -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"));
This page took 0.027211 seconds and 4 git commands to generate.