History

Use && rather than & for a Boolean operation.

Vincent Lefevre committed 4 years ago

Commit ef197111 parent 746560d1 file · +1 −1Browse files

Unified · Split

tccgen.c+1−1
@@ -4477,7 +4477,7 @@ static int parse_btype(CType *type, AttributeDef *ad) · 4476 unmodified lines
44774477 type_size(&type1, &n);
44784478 } else {
44794479 n = expr_const();
4480− if (n < 0 || ((n > 1) & ((n & (n - 1)) != 0)))
4480+ if (n < 0 || (n > 1 && (n & (n - 1)) != 0))
44814481 tcc_error("alignment must be a positive power of two");
44824482 }
44834483 skip(')');

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t