Skip to content

Commit 14aebe2

Browse files
committed
Further simplify previous patch
Use a single XOR instead of NEGATE + AND No functional change.
1 parent cf0a2a2 commit 14aebe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pawns.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ namespace {
188188
// to file distance between left and right outermost pawns.
189189
if (pos.count<PAWN>(Us) > 1)
190190
{
191-
b = ~e->semiopenFiles[Us] & 0xFF;
191+
b = e->semiopenFiles[Us] ^ 0xFF;
192192
value += PawnsFileSpan * int(msb(b) - lsb(b));
193193
}
194194

0 commit comments

Comments
 (0)