From: Andreas Krebbel Date: Thu, 10 Sep 2009 09:04:06 +0000 (+0000) Subject: 2009-09-10 Andreas Krebbel X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c8676ae4523f210705553322445efeae9df702b0;p=binutils-gdb.git 2009-09-10 Andreas Krebbel * s390-dis.c (print_insn_s390): Avoid 'long long'. --- diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index d30b9b93be3..14079aa87d5 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,7 @@ +2009-09-10 Andreas Krebbel + + * s390-dis.c (print_insn_s390): Avoid 'long long'. + 2009-09-10 Andreas Krebbel * s390-dis.c (s390_extract_operand): Remove the shift for pcrel operands. diff --git a/opcodes/s390-dis.c b/opcodes/s390-dis.c index fe208ba9ff2..986e4b50cd6 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