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
4477 type_size(&type1, &n);4477 type_size(&type1, &n);
4478 } else {4478 } else {
4479 n = expr_const();4479 n = expr_const();
4480 if (n < 0 || ((n > 1) & ((n & (n - 1)) != 0)))4480 if (n < 0 || (n > 1 && (n & (n - 1)) != 0))
4481 tcc_error("alignment must be a positive power of two");4481 tcc_error("alignment must be a positive power of two");
4482 }4482 }
4483 skip(')');4483 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