]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Use operator~ to flip colors and squares
[stockfish] / src / search.cpp
index 6f018d817b6c9b54d8c8e028803739466725d90c..3dde96d8a0c893290124e980ad7c4bfff88129d5 100644 (file)
@@ -1393,7 +1393,7 @@ split_point_start: // At split points actual search starts from here
 
     from = from_sq(move);
     to = to_sq(move);
-    them = flip(pos.side_to_move());
+    them = ~pos.side_to_move();
     ksq = pos.king_square(them);
     kingAtt = pos.attacks_from<KING>(ksq);
     pc = pos.piece_on(from);