From 745160572f9ffcc55317fcfedc47653eb95494aa Mon Sep 17 00:00:00 2001 From: mstembera Date: Tue, 12 Jun 2018 15:20:38 -0700 Subject: [PATCH] Fix MSVC error Compiling the current master with MSVC gives the following error: ``` search.cpp(956): error C2660: 'operator *': function does not take 1 arguments types.h(303): note: see declaration of 'operator *' ``` This was introduced in commit: https://github.com/official-stockfish/Stockfish/commit/88de112b84a5285c2afb3e075a05c2ab8ad3fd33 We use a suggestion by @vondele to fix the error, thanks! No functional change. --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index fb5dfd00..997cfd3b 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -951,7 +951,7 @@ moves_loop: // When in check, search starts from here continue; } else if ( !extension // (~20 Elo) - && !pos.see_ge(move, -Value(PawnValueEg * (depth / ONE_PLY)))) + && !pos.see_ge(move, -PawnValueEg * (depth / ONE_PLY))) continue; } -- 2.39.2