From de62696504f96816faf2165132d907924e904649 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 25 Jun 2019 16:56:16 +0930 Subject: [PATCH] Fix logical expression in last commit * config/tc-ppc.c (ppc_handle_align): Add parentheses. --- gas/ChangeLog | 4 ++++ gas/config/tc-ppc.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 1e2962763fa..c7dc37d937d 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2019-06-25 Alan Modra + + * config/tc-ppc.c (ppc_handle_align): Add parentheses. + 2019-06-25 Alan Modra * config/tc-ppc.h (ppc_nop_select): Declare. diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index de0f8da9484..5f8d120d486 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -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; -- 2.30.2