Fix logical expression in last commit

* config/tc-ppc.c (ppc_handle_align): Add parentheses.
This commit is contained in:
Alan Modra 2019-06-25 16:56:16 +09:30
parent 22f72c4868
commit de62696504
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2019-06-25 Alan Modra <amodra@gmail.com>
* config/tc-ppc.c (ppc_handle_align): Add parentheses.
2019-06-25 Alan Modra <amodra@gmail.com>
* config/tc-ppc.h (ppc_nop_select): Declare.

View File

@ -7122,7 +7122,7 @@ ppc_handle_align (struct frag *fragP)
with nops but odd counts indicate data in an executable section
so padding with zeros is most appropriate. */
if (count == 0
|| nop_select == PPC_NOP_VLE ? (count & 1) != 0 : (count & 3) != 0)
|| (nop_select == PPC_NOP_VLE ? (count & 1) != 0 : (count & 3) != 0))
{
*dest = 0;
return;