From ef19711ba5bdc8434b1e92ca905e49948343f762 Mon Sep 17 00:00:00 2001 From: Vincent Lefevre Date: Fri, 29 Jul 2022 12:43:44 +0200 Subject: [PATCH] Use && rather than & for a Boolean operation. --- tccgen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tccgen.c b/tccgen.c index 08556ee1..d0cb8367 100644 --- a/tccgen.c +++ b/tccgen.c @@ -4477,7 +4477,7 @@ static int parse_btype(CType *type, AttributeDef *ad) type_size(&type1, &n); } else { n = expr_const(); - if (n < 0 || ((n > 1) & ((n & (n - 1)) != 0))) + if (n < 0 || (n > 1 && (n & (n - 1)) != 0)) tcc_error("alignment must be a positive power of two"); } skip(')');