Skip to content

Commit 7cac75c

Browse files
Daniel WhiteDaniel White
authored andcommitted
Replaced != with - in promotion test to save 1 byte.
1 parent 3f1eb66 commit 7cac75c

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
@@ -37,7 +37,7 @@ D(x, y, p, e) {
3737
I m%8==2 & (t<8 | t>103))
3838
B[t]^=T[p%7+31]-35; // Promotion.
3939
S^=96
40-
I m&16 && t!=f+d)
40+
I m&16 && t-f-d)
4141
B[f+t>>1]=B[t+(d*3-1)/2],B[t+(d*3-1)/2]=0 // If castling also move rook.
4242

4343
// Looking to make a move? (if our own move, make sure does not leave us in check)

0 commit comments

Comments
 (0)