]> git.sesse.net Git - stockfish/commitdiff
Fix compile for 64 bits
authorMarco Costalba <mcostalba@gmail.com>
Thu, 8 Dec 2011 12:55:27 +0000 (13:55 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Thu, 8 Dec 2011 12:55:27 +0000 (13:55 +0100)
No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/search.cpp

index b781bb770864aa63d52f1050b316f9c052ec86c2..5d753e8ea7be3281332731b0617ecde637c266ee 100644 (file)
@@ -366,7 +366,7 @@ void Search::think() {
   // Do we have to play with skill handicap? In this case enable MultiPV that
   // we will use behind the scenes to retrieve a set of possible moves.
   SkillLevelEnabled = (SkillLevel < 20);
-  MultiPV = (SkillLevelEnabled ? std::max(UCIMultiPV, 4U) : UCIMultiPV);
+  MultiPV = (SkillLevelEnabled ? std::max(UCIMultiPV, (size_t)4) : UCIMultiPV);
 
   // Write current search header to log file
   if (Options["Use Search Log"].value<bool>())