mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-29 06:10:09 +08:00
Use && rather than & for a Boolean operation.
This commit is contained in:
parent
746560dc45
commit
ef19711ba5
2
tccgen.c
2
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(')');
|
||||
|
Loading…
Reference in New Issue
Block a user