Small cleanups 13

No functional change
This commit is contained in:
Stéphane Nicolet
2020-11-12 14:05:28 +01:00
parent f9595828eb
commit 027626db1e
7 changed files with 13 additions and 14 deletions
+1 -1
View File
@@ -247,7 +247,7 @@ namespace Eval::NNUE {
// Look for a usable accumulator of an earlier position. We keep track
// of the estimated gain in terms of features to be added/subtracted.
StateInfo *st = pos.state(), *next = nullptr;
int gain = popcount(pos.pieces()) - 2;
int gain = pos.count<ALL_PIECES>() - 2;
while (st->accumulator.state[c] == EMPTY)
{
auto& dp = st->dirtyPiece;