mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-17 23:56:23 +08:00
Replace make_square() with operator|(File, Rank)
Be fancy :-) No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -117,7 +117,7 @@ namespace {
|
||||
stm = Color(idx & 1);
|
||||
bksq = Square((idx >> 1) & 63);
|
||||
wksq = Square((idx >> 7) & 63);
|
||||
psq = make_square(File((idx >> 13) & 3), Rank((idx >> 15) + 1));
|
||||
psq = File((idx >> 13) & 3) | Rank((idx >> 15) + 1);
|
||||
}
|
||||
|
||||
Result KPKPosition::classify_leaf(int idx) {
|
||||
|
||||
Reference in New Issue
Block a user