From: Marco Costalba Date: Sat, 17 Sep 2016 08:13:38 +0000 (+0200) Subject: Fix a warning with MSVC X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=92f01aa2bd2b4e9644323cdbef8621682605660d;hp=ea41f18e6e6404a6135d98eaeccfbeb177d5a49d Fix a warning with MSVC warning C4706: assignment within conditional expression No functional change. --- diff --git a/src/search.cpp b/src/search.cpp index 695cd7c1..6b12e3fe 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -506,7 +506,7 @@ void Thread::search() { if ( rootMoves.size() == 1 || Time.elapsed() > Time.optimum() * unstablePvFactor * improvingFactor / 628 - || (mainThread->easyMovePlayed = doEasyMove)) + || (mainThread->easyMovePlayed = doEasyMove, doEasyMove)) { // If we are allowed to ponder do not stop the search now but // keep pondering until the GUI sends "ponderhit" or "stop".