summaryrefslogtreecommitdiff
path: root/opcodes/s12z-dis.c
diff options
context:
space:
mode:
Diffstat (limited to 'opcodes/s12z-dis.c')
-rw-r--r--opcodes/s12z-dis.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/opcodes/s12z-dis.c b/opcodes/s12z-dis.c
index 972aad80bf..4c07d5a41f 100644
--- a/opcodes/s12z-dis.c
+++ b/opcodes/s12z-dis.c
@@ -205,14 +205,14 @@ operand_separator (struct disassemble_info *info)
there is no symbol. If BASE is non zero, then the a PC relative adddress is
assumend (ie BASE is the value in the PC. */
static void
-decode_possible_symbol (bfd_vma addr, bfd_vma base,
+decode_possible_symbol (bfd_signed_vma addr, bfd_vma base,
struct disassemble_info *info, bool relative)
{
- const char *fmt = relative ? "*%+" BFD_VMA_FMT "d" : "%" BFD_VMA_FMT "d";
+ const char *fmt = relative ? "*%+" PRId64 : "%" PRId64;
asymbol *sym = info->symbol_at_address_func (addr + base, info);
if (!sym)
- (*info->fprintf_func) (info->stream, fmt, addr);
+ (*info->fprintf_func) (info->stream, fmt, (int64_t) addr);
else
(*info->fprintf_func) (info->stream, "%s", bfd_asymbol_name (sym));
}