From 7a3483fa9e618de10718c1888f61f82f83b955ef Mon Sep 17 00:00:00 2001 From: Sebastian Buchwald Date: Wed, 27 Aug 2025 22:32:09 +0200 Subject: [PATCH] Remove superfluous cast closes https://github.com/official-stockfish/Stockfish/pull/6277 No functional change --- src/position.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/position.cpp b/src/position.cpp index 4ac1369d4..f59632475 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -79,7 +79,7 @@ std::ostream& operator<<(std::ostream& os, const Position& pos) { for (Bitboard b = pos.checkers(); b;) os << UCIEngine::square(pop_lsb(b)) << " "; - if (int(Tablebases::MaxCardinality) >= popcount(pos.pieces()) && !pos.can_castle(ANY_CASTLING)) + if (Tablebases::MaxCardinality >= popcount(pos.pieces()) && !pos.can_castle(ANY_CASTLING)) { StateInfo st;