X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fposition.cpp;h=0ffcc79447bb67db6cdde1f322a685782fa43d03;hb=161c6b025e763d6bcc8339a614be312f2b173437;hp=537674c9119c123370c44456cfb7b9ea94301451;hpb=34178205fc762638e633a61ecc45360e1662bdee;p=stockfish diff --git a/src/position.cpp b/src/position.cpp index 537674c9..0ffcc794 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -1520,7 +1520,7 @@ void Position::init() { Bitboard b = cr; while (b) { - Key k = zobCastle[1 << pop_1st_bit(&b)]; + Key k = zobCastle[1ULL << pop_1st_bit(&b)]; zobCastle[cr] ^= k ? k : rk.rand(); } }