Assorted trivial cleanups 3/2019 (#2030)

No functional change.
This commit is contained in:
Marco Costalba
2019-03-31 11:47:36 +02:00
committed by GitHub
parent 95ba7f78d5
commit 82ad9ce9cf
9 changed files with 34 additions and 39 deletions

View File

@@ -149,9 +149,9 @@ Entry* probe(const Position& pos) {
// OK, we didn't find any special evaluation function for the current material
// configuration. Is there a suitable specialized scaling function?
const EndgameBase<ScaleFactor>* sf;
const auto* sf = pos.this_thread()->endgames.probe<ScaleFactor>(key);
if ((sf = pos.this_thread()->endgames.probe<ScaleFactor>(key)) != nullptr)
if (sf)
{
e->scalingFunction[sf->strongSide] = sf; // Only strong color assigned
return e;