* symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
authorTom Tromey <tromey@redhat.com>
Tue, 9 Apr 2013 02:17:17 +0000 (02:17 +0000)
committerTom Tromey <tromey@redhat.com>
Tue, 9 Apr 2013 02:17:17 +0000 (02:17 +0000)
long.

gdb/ChangeLog
gdb/symmisc.c

index f29661f..5fd218d 100644 (file)
@@ -1,5 +1,10 @@
 2013-04-08  Tom Tromey  <tromey@redhat.com>
 
+       * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
+       long.
+
+2013-04-08  Tom Tromey  <tromey@redhat.com>
+
        * maint.c (print_bfd_section_info): Print the section index.
        * symmisc.c (dump_msymbols): Print the section index.
 
index c4bf97e..52c934a 100644 (file)
@@ -268,7 +268,7 @@ dump_msymbols (struct objfile *objfile, struct ui_file *outfile)
                                                section->the_bfd_section));
          else
            fprintf_filtered (outfile, " spurious section %ld",
-                             section - objfile->sections);
+                             (long) (section - objfile->sections));
        }
       if (SYMBOL_DEMANGLED_NAME (msymbol) != NULL)
        {