]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Fix i386 compilation
authorPetr Machata <pmachata@redhat.com>
Thu, 29 Jan 2009 12:42:58 +0000 (13:42 +0100)
committerPetr Machata <pmachata@redhat.com>
Thu, 29 Jan 2009 12:42:58 +0000 (13:42 +0100)
libdw/c++/line_info.cc
src/dwarflint.c

index d86b724ad1d9bfd5de9e5bf6cf71d9bebeef8c37..cbdc638be27ce7d0497a05e0a89ea28f10f1bc01 100644 (file)
@@ -125,7 +125,7 @@ dwarf::source_file::name () const
     return dwarf_formstring (thisattr ());
 
   Dwarf_Files *files;
-  size_t idx;
+  Dwarf_Word idx;
   xif (get_files (thisattr (), &files, &idx));
 
   const char *result = dwarf_filesrc (files, idx, NULL, NULL);
@@ -146,7 +146,7 @@ dwarf::source_file::to_string () const
     return plain_string (dwarf_formstring (thisattr ()));
 
   Dwarf_Files *files;
-  size_t idx;
+  Dwarf_Word idx;
   xif (get_files (thisattr (), &files, &idx));
 
   Dwarf_Word file_mtime;
index 68f9a2a714751316a7d6c1814b6579fc9c869249..a5e0fbb60336d88870b479b71cac6afba8571c47 100644 (file)
@@ -2130,7 +2130,7 @@ check_loc_or_range_ref (struct read_ctx *ctx,
   if (!read_ctx_skip (ctx, addr))
     {
       wr_error (wh, ": invalid reference outside the section "
-               "0x%" PRIx64 ", size only 0x%" PRIx64 ".\n",
+               "%#" PRIx64 ", size only %#tx.\n",
                addr, ctx->end - ctx->begin);
       return false;
     }