mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 01:56:58 +08:00
Fix overload ambiguity
Fix an error when compiling current master with MSVC due to the ambiguity of which operator* overload was intended (reported by Jarrod Torriero). No functional change.
This commit is contained in:
@@ -1167,7 +1167,7 @@ moves_loop: // When in check, search starts from here
|
|||||||
update_quiet_stats(pos, ss, bestMove, quietsSearched, quietCount, stat_bonus(depth));
|
update_quiet_stats(pos, ss, bestMove, quietsSearched, quietCount, stat_bonus(depth));
|
||||||
else
|
else
|
||||||
update_capture_stats(pos, bestMove, capturesSearched, captureCount,
|
update_capture_stats(pos, bestMove, capturesSearched, captureCount,
|
||||||
stat_bonus(depth + bool(bestValue > beta + KnightValueMg) * ONE_PLY));
|
stat_bonus(depth + (bestValue > beta + KnightValueMg ? ONE_PLY : DEPTH_ZERO)));
|
||||||
|
|
||||||
// Extra penalty for a quiet TT move in previous ply when it gets refuted
|
// Extra penalty for a quiet TT move in previous ply when it gets refuted
|
||||||
if ((ss-1)->moveCount == 1 && !pos.captured_piece())
|
if ((ss-1)->moveCount == 1 && !pos.captured_piece())
|
||||||
|
|||||||
Reference in New Issue
Block a user