From: Reuven Peleg Date: Mon, 15 Jul 2013 13:14:30 +0000 (+0300) Subject: Simplify a condition in refutes() X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=a6c5f60caaa834dcc755aafb464c12f7f5d52567 Simplify a condition in refutes() No functional change. Signed-off-by: Marco Costalba --- diff --git a/src/search.cpp b/src/search.cpp index c98a53da..f47e601b 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1454,7 +1454,7 @@ moves_loop: // When in check and at SpNode search starts from here | (attacks_bb(m2to, occ) & pos.pieces(color_of(pc), QUEEN, BISHOP)); // Verify attackers are triggered by our move and not already existing - if (xray && (xray ^ (xray & pos.attacks_from(m2to)))) + if (xray && (xray & ~pos.attacks_from(m2to))) // Unlikely xray return true; }