]> git.sesse.net Git - stockfish/commitdiff
Fix a warning with MSVC
authorMarco Costalba <mcostalba@gmail.com>
Sat, 17 Sep 2016 08:13:38 +0000 (10:13 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 17 Sep 2016 08:14:28 +0000 (10:14 +0200)
warning C4706: assignment within conditional expression

No functional change.

src/search.cpp

index 695cd7c1876cbeadae3a9f7f104f77a45c7b83a7..6b12e3fec1260435b64341d3a186997f890619bf 100644 (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".