From: Tristan Gingold Date: Thu, 19 Jan 2012 13:58:15 +0000 (+0000) Subject: 2012-01-19 Tristan Gingold X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2fc0fe4faa2bee97a91ad1948900778c459ce977;p=binutils-gdb.git 2012-01-19 Tristan Gingold * dwarf.c (process_extended_line_op): Add a cast to silent a warning. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 469aa36466f..bba3eaeeda9 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2012-01-19 Tristan Gingold + + * dwarf.c (process_extended_line_op): Add a cast to silent a + warning. + 2012-01-19 Tristan Gingold * dwarf.c (process_extended_line_op): Reindent define_file output. diff --git a/binutils/dwarf.c b/binutils/dwarf.c index 26f7cd5b6c7..2258c676198 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -291,7 +291,7 @@ process_extended_line_op (unsigned char *data, int is_stmt) printf ("%s\t", dwarf_vmatoa ("u", read_leb128 (data, & bytes_read, 0))); data += bytes_read; printf ("%s", name); - if (data - orig_data != len) + if ((unsigned int) (data - orig_data) != len) printf (_(" [Bad opcode length]")); printf ("\n\n"); break;