X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpawns.cpp;h=b3c65a0f166268200fb918d4a751f2563f7de378;hp=c099153a2ca5d7e1038d15a6ca01e934fcdfa859;hb=c50ad85c3c414feb7b86ce086b8acf73ae5b1b11;hpb=e0a00c499654850108749ca6fd686f79188ac1f9 diff --git a/src/pawns.cpp b/src/pawns.cpp index c099153a..b3c65a0f 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -79,8 +79,6 @@ namespace { PawnInfo* PawnInfoTable::get_pawn_info(const Position& pos) const { - assert(pos.is_ok()); - Key key = pos.get_pawn_key(); PawnInfo* pi = probe(key); @@ -230,7 +228,7 @@ Score PawnInfo::updateShelter(const Position& pos, Square ksq) { for (int i = 0; i < 3; i++) { r += Shift; - shelter += BitCount8Bit[(pawns >> r) & 0xFF] * (64 >> i); + shelter += BitCount8Bit[(pawns >> r) & 0xFF] << (6 - i); } } kingSquares[Us] = ksq;