mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Avoid a note related to an ABI change
current master triggers a gcc note: parameter passing for argument of type 'std::pair<double, double>' when C++17 is enabled changed to match C++14 in GCC 10.1 while this is inconsequential, and just informative https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111516 we can easily avoid it. closes https://github.com/official-stockfish/Stockfish/pull/5145 No functional change
This commit is contained in:
parent
ec598b380d
commit
c964942da2
1 changed files with 7 additions and 1 deletions
|
@ -344,7 +344,13 @@ void UCI::position(Position& pos, std::istringstream& is, StateListPtr& states)
|
|||
}
|
||||
|
||||
namespace {
|
||||
std::pair<double, double> win_rate_params(const Position& pos) {
|
||||
|
||||
struct WinRateParams {
|
||||
double a;
|
||||
double b;
|
||||
};
|
||||
|
||||
WinRateParams win_rate_params(const Position& pos) {
|
||||
|
||||
int material = pos.count<PAWN>() + 3 * pos.count<KNIGHT>() + 3 * pos.count<BISHOP>()
|
||||
+ 5 * pos.count<ROOK>() + 9 * pos.count<QUEEN>();
|
||||
|
|
Loading…
Add table
Reference in a new issue