Skip to content

Commit 4164f82

Browse files
Daniel WhiteDaniel White
authored andcommitted
Removed unneeded brackets.
1 parent e945c7a commit 4164f82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

iota.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ D(x, y, p, e) {
2424
{
2525
I ((d>0)^(S==32)) || // Bad direction?
2626
(!v && d%2 && t!=e) | // Diagonal without capture?
27-
(!(d%2) && v>0) // Straight with capture?
27+
!(d%2 || !v) // Straight with capture?
2828
K
2929

3030
I t==e) b=t^16; // Is this an en-passent capture?
@@ -46,7 +46,7 @@ D(x, y, p, e) {
4646
// Looking to make a move? (if our own move, make sure does not leave us in check)
4747
I (t==y && f==x) | (x==H && D(8,0,0,H))) {
4848
X=f,Y=t;
49-
E=(m%8==2 && t!=f+d ? f+t>>1 : 9); // Set ep-target square if double pawn move.
49+
E= m%8==2&&t!=f+d ? f+t>>1 : 9; // Set ep-target square if double pawn move.
5050
return B[t]==m%128; // Indicate if promotion has NOT occured.
5151
}
5252

0 commit comments

Comments
 (0)