From: Szabolcs Nagy Date: Tue, 16 Jun 2015 12:35:33 +0000 (+0100) Subject: Fixes a compile time warnng about left shifting a negative value. X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=24b4cf66a626566e7903813a2e0156778f4903f9;p=deliverable%2Fbinutils-gdb.git Fixes a compile time warnng about left shifting a negative value. * arm-dis.c (print_insn_coprocessor): Avoid negative shift. --- diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index bf54219f6e..fe9134d403 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,7 @@ +2015-06-16 Szabolcs Nagy + + * arm-dis.c (print_insn_coprocessor): Avoid negative shift. + 2015-06-12 Peter Bergner * ppc-opc.c: Add comment accidentally removed by old commit. diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c index e9f4425a15..818847dd55 100644 --- a/opcodes/arm-dis.c +++ b/opcodes/arm-dis.c @@ -3352,7 +3352,7 @@ print_insn_coprocessor (bfd_vma pc, /* Is ``imm'' a negative number? */ if (imm & 0x40) - imm |= (-1 << 7); + imm -= 0x80; func (stream, "%d", imm); }