aboutsummaryrefslogtreecommitdiff
path: root/opcodes/s390-dis.c
diff options
context:
space:
mode:
authorAndreas Krebbel <Andreas.Krebbel@de.ibm.com>2009-09-10 09:04:06 +0000
committerAndreas Krebbel <Andreas.Krebbel@de.ibm.com>2009-09-10 09:04:06 +0000
commitc8676ae4523f210705553322445efeae9df702b0 (patch)
treef0df2381d3eea5b4632f5f87faee42c71dd820bf /opcodes/s390-dis.c
parent7330f9c3a4f7d88cc21d6a1163d0099b372799c5 (diff)
downloadgdb-c8676ae4523f210705553322445efeae9df702b0.zip
gdb-c8676ae4523f210705553322445efeae9df702b0.tar.gz
gdb-c8676ae4523f210705553322445efeae9df702b0.tar.bz2
2009-09-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* s390-dis.c (print_insn_s390): Avoid 'long long'.
Diffstat (limited to 'opcodes/s390-dis.c')
-rw-r--r--opcodes/s390-dis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/s390-dis.c b/opcodes/s390-dis.c
index fe208ba..986e4b5 100644
--- a/opcodes/s390-dis.c
+++ b/opcodes/s390-dis.c
@@ -222,8 +222,8 @@ print_insn_s390 (bfd_vma memaddr, struct disassemble_info *info)
else if (operand->flags & S390_OPERAND_CR)
(*info->fprintf_func) (info->stream, "%%c%i", value);
else if (operand->flags & S390_OPERAND_PCREL)
- (*info->print_address_func) (memaddr +
- (((long long)(int)value) << 1), info);
+ (*info->print_address_func) (memaddr + (int)value + (int)value,
+ info);
else if (operand->flags & S390_OPERAND_SIGNED)
(*info->fprintf_func) (info->stream, "%i", (int) value);
else