Skip to content

Commit f590f16

Browse files
Daniel WhiteDaniel White
authored andcommitted
Removed unnecessary brackets in pawn direction testing (^ has higher precedence than |). Saves 2 bytes.
1 parent 7cac75c commit f590f16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iota.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ D(x, y, p, e) {
1919

2020
// Special pawn logic.
2121
I m%8==2) {
22-
I (d>0 ^ S==32) | // Bad direction?
22+
I d>0 ^ S==32 | // Bad direction?
2323
(!v & d%2 & t!=e) | // Diagonal without capture?
2424
!(d%2 | !v) // Straight with capture?
2525
K

0 commit comments

Comments
 (0)