X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpawns.cpp;h=1cdeb461d51e2a2e74a56860f3d3e3c65998d70d;hp=8835d327e068b1e12215cfe754d3e17bcd641970;hb=1d4e7bbdf5a8b2e87daaa54eea52cbe01d699fdb;hpb=35782079749c8f16560a13b9740d1a76654c6fe2 diff --git a/src/pawns.cpp b/src/pawns.cpp index 8835d327..1cdeb461 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -148,7 +148,7 @@ PawnInfo* PawnInfoTable::get_pawn_info(const Position& pos) const { assert(pos.is_ok()); Key key = pos.get_pawn_key(); - int index = int(key & (size - 1)); + unsigned index = unsigned(key & (size - 1)); PawnInfo* pi = entries + index; // If pi->key matches the position's pawn hash key, it means that we