X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmovepick.cpp;h=65155a73f7936a308b13d099cb9071e704ce4298;hb=a2038c1a011552c3d56d3b318780f7f5eadaf05d;hp=564adc286ea8221e01cac1dce4ac3d2d5cf72ca1;hpb=7cf93f8b7101e5cf5df3f7921861f27b3beb9525;p=stockfish diff --git a/src/movepick.cpp b/src/movepick.cpp index 564adc28..65155a73 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -1,6 +1,6 @@ /* Stockfish, a UCI chess playing engine derived from Glaurung 2.1 - Copyright (C) 2004-2022 The Stockfish developers (see AUTHORS file) + Copyright (C) 2004-2023 The Stockfish developers (see AUTHORS file) Stockfish is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -158,7 +158,7 @@ Move MovePicker::select(Pred filter) { while (cur < endMoves) { - if (T == Best) + if constexpr (T == Best) std::swap(*cur, *std::max_element(cur, endMoves)); if (*cur != ttMove && filter())