OSDN Git Service

2012-01-19 Tristan Gingold <gingold@adacore.com>
authorgingold <gingold>
Thu, 19 Jan 2012 13:58:15 +0000 (13:58 +0000)
committergingold <gingold>
Thu, 19 Jan 2012 13:58:15 +0000 (13:58 +0000)
* dwarf.c (process_extended_line_op): Add a cast to silent a
warning.

binutils/ChangeLog
binutils/dwarf.c

index 469aa36..bba3eae 100644 (file)
@@ -1,5 +1,10 @@
 2012-01-19  Tristan Gingold  <gingold@adacore.com>
 
+       * dwarf.c (process_extended_line_op): Add a cast to silent a
+       warning.
+
+2012-01-19  Tristan Gingold  <gingold@adacore.com>
+
        * dwarf.c (process_extended_line_op): Reindent define_file output.
        Detect define_file opcode length mismatch.
        (display_debug_lines_decoded): Add an entry in file_table for each
index 26f7cd5..2258c67 100644 (file)
@@ -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;