aboutsummaryrefslogtreecommitdiff
path: root/opcodes/arm-dis.c
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2015-06-16 13:35:33 +0100
committerNick Clifton <nickc@redhat.com>2015-06-16 13:35:33 +0100
commit24b4cf66a626566e7903813a2e0156778f4903f9 (patch)
tree3daeb3972e1ad26c4fe5d733c7264403c5754918 /opcodes/arm-dis.c
parent95855ca82ec3ced28916922d663106e61ce593b4 (diff)
downloadgdb-24b4cf66a626566e7903813a2e0156778f4903f9.zip
gdb-24b4cf66a626566e7903813a2e0156778f4903f9.tar.gz
gdb-24b4cf66a626566e7903813a2e0156778f4903f9.tar.bz2
Fixes a compile time warnng about left shifting a negative value.
* arm-dis.c (print_insn_coprocessor): Avoid negative shift.
Diffstat (limited to 'opcodes/arm-dis.c')
-rw-r--r--opcodes/arm-dis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c
index e9f4425..818847d 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);
}