X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitbase.cpp;h=b73b72c4c17506f2e2dc7da58ada30a7caa93ccb;hp=cd6a7329724e4260bc1529ca9756e82b8265adb9;hb=5f12069cbfc882fdf989d04618ad9c33e603c419;hpb=4eee60343323499d087709614d47e24f66437697 diff --git a/src/bitbase.cpp b/src/bitbase.cpp index cd6a7329..b73b72c4 100644 --- a/src/bitbase.cpp +++ b/src/bitbase.cpp @@ -110,7 +110,7 @@ namespace { wksq = Square((idx >> 0) & 0x3F); bksq = Square((idx >> 6) & 0x3F); us = Color ((idx >> 12) & 0x01); - psq = File ((idx >> 13) & 0x03) | Rank(RANK_7 - (idx >> 15)); + psq = make_square(File((idx >> 13) & 0x03), Rank(RANK_7 - (idx >> 15))); result = UNKNOWN; // Check if two pieces are on the same square or if a king can be captured