From b248d689a8b0f43066cbb7b539164db8150c712b Mon Sep 17 00:00:00 2001 From: lemteay Date: Wed, 11 Feb 2026 20:48:17 +0800 Subject: [PATCH] Add constexpr specifier back to conthist_bonuses Passed STC LLR: 2.94 (-2.94,2.94) <0.00,2.00> Total: 60288 W: 15668 L: 15331 D: 29289 Ptnml(0-2): 159, 6490, 16532, 6781, 182 https://tests.stockfishchess.org/tests/view/698c835762a8f472da3a88e1 closes https://github.com/official-stockfish/Stockfish/pull/6611 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 ca3a9a461..fe795f5ee 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1873,7 +1873,7 @@ void update_all_stats(const Position& pos, // Updates histories of the move pairs formed by moves // at ply -1, -2, -3, -4, and -6 with current move. void update_continuation_histories(Stack* ss, Piece pc, Square to, int bonus) { - static std::array conthist_bonuses = { + static constexpr std::array conthist_bonuses = { {{1, 1133}, {2, 683}, {3, 312}, {4, 582}, {5, 149}, {6, 474}}}; for (const auto [i, weight] : conthist_bonuses)