aboutsummaryrefslogtreecommitdiff
path: root/opcodes/arm-dis.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2016-12-16 10:59:36 +0000
committerNick Clifton <nickc@redhat.com>2016-12-16 10:59:36 +0000
commitdb7b55faa1a11e632ddf57505c9bb64bc783471a (patch)
tree789b58e2af0a30f0a0503244c8acff382a2cd358 /opcodes/arm-dis.c
parent221855059a11ab76aa909a5df4104354f9384139 (diff)
downloadgdb-db7b55faa1a11e632ddf57505c9bb64bc783471a.zip
gdb-db7b55faa1a11e632ddf57505c9bb64bc783471a.tar.gz
gdb-db7b55faa1a11e632ddf57505c9bb64bc783471a.tar.bz2
Fix compile time warning building arm-dis.c
Diffstat (limited to 'opcodes/arm-dis.c')
-rw-r--r--opcodes/arm-dis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c
index 791d124..372c11e 100644
--- a/opcodes/arm-dis.c
+++ b/opcodes/arm-dis.c
@@ -5759,7 +5759,7 @@ print_insn_thumb32 (bfd_vma pc, struct disassemble_info *info, long given)
if (off || !U)
{
func (stream, ", #%c%u", U ? '+' : '-', off * 4);
- value_in_comment = off * 4 * U ? 1 : -1;
+ value_in_comment = (off && U) ? 1 : -1;
}
func (stream, "]");
if (W)
@@ -5771,7 +5771,7 @@ print_insn_thumb32 (bfd_vma pc, struct disassemble_info *info, long given)
if (W)
{
func (stream, "#%c%u", U ? '+' : '-', off * 4);
- value_in_comment = off * 4 * U ? 1 : -1;
+ value_in_comment = (off && U) ? 1 : -1;
}
else
{