X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitbase.cpp;h=9322e537f2837cd2bf2ba6588bda42baa0e3b524;hp=ceb94a0f9ef002f7c5bcc6218c8bf5a09df47b7a;hb=5f5d056c8fb9996748b742c9d5102c9202b0bd2c;hpb=9c7e2c8f9d3eba45c20529ad0624e6de10fc7b83 diff --git a/src/bitbase.cpp b/src/bitbase.cpp index ceb94a0f..9322e537 100644 --- a/src/bitbase.cpp +++ b/src/bitbase.cpp @@ -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) {