mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-03 13:23:00 +08:00
From Craig Silverstein: add cast to avoid warning.
This commit is contained in:
@ -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"));
|
||||
|
Reference in New Issue
Block a user