* 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 f29661fdab9339b5c9c9a2ac826b51372a80bdec..5fd218da857a42f194b037906a424cc878f29044 100644 (file)
@@ -1,3 +1,8 @@
+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.
index c4bf97e37c7c01df8043273f7bb6f33eab9a616f..52c934ab536313b79a35df32c35a40aca51dbc2f 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)
        {