]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Add cast to avoid compile time warning
authorNick Clifton <nickc@redhat.com>
Wed, 31 Oct 2007 17:13:53 +0000 (17:13 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 31 Oct 2007 17:13:53 +0000 (17:13 +0000)
binutils/readelf.c

index b64f77538775df517df9491e190b4dd8a9ab5dba..b1357f8550b09d43739f5a00e0f6724b7cdd38b4 100644 (file)
@@ -8277,7 +8277,7 @@ debug_apply_relocations (void *file,
            {
              warn (_("skipping unexpected symbol type %s in %ld'th relocation in section %s\n"),
                    get_symbol_type (ELF_ST_TYPE (sym->st_info)),
-                   rp - relocs,
+                   (long int)(rp - relocs),
                    SECTION_NAME (relsec));
              continue;
            }