diff options
author | dim <dim@FreeBSD.org> | 2015-09-22 09:35:35 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2015-09-22 09:35:35 +0000 |
commit | 87b707ed34009ce34c69145b17a47c384047cf46 (patch) | |
tree | d617788af3d8390fe0eabbe064386d6bf41cc426 /contrib/binutils | |
parent | ff5d08b0317ab85d564fa4ed529fe7fea07bded1 (diff) | |
download | FreeBSD-src-87b707ed34009ce34c69145b17a47c384047cf46.zip FreeBSD-src-87b707ed34009ce34c69145b17a47c384047cf46.tar.gz |
In binutils' arm-dis.c, avoid left-shifting a negative number.
Submitted by: dan.mcgregor_usask.ca (Dan McGregor)
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D3376
Diffstat (limited to 'contrib/binutils')
-rw-r--r-- | contrib/binutils/opcodes/arm-dis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/binutils/opcodes/arm-dis.c b/contrib/binutils/opcodes/arm-dis.c index 2af8fda..b6ce5c6 100644 --- a/contrib/binutils/opcodes/arm-dis.c +++ b/contrib/binutils/opcodes/arm-dis.c @@ -1767,7 +1767,7 @@ print_insn_coprocessor (bfd_vma pc, struct disassemble_info *info, long given, /* Is ``imm'' a negative number? */ if (imm & 0x40) - imm |= (-1 << 7); + imm |= -(1 << 7); func (stream, "%d", imm); } |