Fix compile time warning building arm-dis.c

This commit is contained in:
Nick Clifton 2016-12-16 10:59:36 +00:00
parent 221855059a
commit db7b55faa1
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2016-12-16 Nick Clifton <nickc@redhat.com>
* arm-dis.c (print_insn_thumb32): Fix compile time warning
computing value_in_comment.
2016-12-14 Maciej W. Rozycki <macro@imgtec.com>
* mips-dis.c (mips_convert_abiflags_ases): New function.

View File

@ -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
{