1
0
Fork 0

Fix a warning with MSVC

warning C4706: assignment within conditional expression

No functional change.
pull/805/head
Marco Costalba 2016-09-17 10:13:38 +02:00
parent ea41f18e6e
commit 92f01aa2bd
1 changed files with 1 additions and 1 deletions

View File

@ -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".