]> git.sesse.net Git - stockfish/commitdiff
piecesCount (#932)
authorStefano Cardanobile <stefano.cardanobile@gmail.com>
Tue, 20 Dec 2016 10:18:19 +0000 (11:18 +0100)
committerMarco Costalba <mcostalba@users.noreply.github.com>
Tue, 20 Dec 2016 10:18:19 +0000 (11:18 +0100)
All counts in search.cpp are of the form xxxCount. Conform piecesCnt to this unwritten rule.

No functional change.

src/search.cpp

index 24c21c4e71057bbd92cb068a3b9b484207af1097..a17a7506856bf82f36d5dbf47f3e55694e6fa22b 100644 (file)
@@ -654,10 +654,10 @@ namespace {
     // Step 4a. Tablebase probe
     if (!rootNode && TB::Cardinality)
     {
-        int piecesCnt = pos.count<ALL_PIECES>(WHITE) + pos.count<ALL_PIECES>(BLACK);
+        int piecesCount = pos.count<ALL_PIECES>(WHITE) + pos.count<ALL_PIECES>(BLACK);
 
-        if (    piecesCnt <= TB::Cardinality
-            && (piecesCnt <  TB::Cardinality || depth >= TB::ProbeDepth)
+        if (    piecesCount <= TB::Cardinality
+            && (piecesCount <  TB::Cardinality || depth >= TB::ProbeDepth)
             &&  pos.rule50_count() == 0
             && !pos.can_castle(ANY_CASTLING))
         {