From a6c5f60caaa834dcc755aafb464c12f7f5d52567 Mon Sep 17 00:00:00 2001 From: Reuven Peleg Date: Mon, 15 Jul 2013 16:14:30 +0300 Subject: [PATCH] Simplify a condition in refutes() No functional change. Signed-off-by: Marco Costalba --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.2