mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 01:03:09 +00:00
Avoid a compilation warning
Avoid a warning while compiling with gcc version 4.9.2 No functional change.
This commit is contained in:
parent
67f5f54a29
commit
6c898a10be
1 changed files with 2 additions and 2 deletions
|
@ -758,7 +758,7 @@ namespace {
|
||||||
&& (pos.pieces(PAWN) & KingSide);
|
&& (pos.pieces(PAWN) & KingSide);
|
||||||
|
|
||||||
// Compute the initiative bonus for the attacking side
|
// Compute the initiative bonus for the attacking side
|
||||||
int initiative = 8 * outflanking
|
int complexity = 8 * outflanking
|
||||||
+ 8 * pe->pawn_asymmetry()
|
+ 8 * pe->pawn_asymmetry()
|
||||||
+ 12 * pos.count<PAWN>()
|
+ 12 * pos.count<PAWN>()
|
||||||
+ 16 * pawnsOnBothFlanks
|
+ 16 * pawnsOnBothFlanks
|
||||||
|
@ -767,7 +767,7 @@ namespace {
|
||||||
// Now apply the bonus: note that we find the attacking side by extracting
|
// Now apply the bonus: note that we find the attacking side by extracting
|
||||||
// the sign of the endgame value, and that we carefully cap the bonus so
|
// the sign of the endgame value, and that we carefully cap the bonus so
|
||||||
// that the endgame score will never change sign after the bonus.
|
// that the endgame score will never change sign after the bonus.
|
||||||
int v = ((eg > 0) - (eg < 0)) * std::max(initiative, -abs(eg));
|
int v = ((eg > 0) - (eg < 0)) * std::max(complexity, -abs(eg));
|
||||||
|
|
||||||
if (T)
|
if (T)
|
||||||
Trace::add(INITIATIVE, make_score(0, v));
|
Trace::add(INITIATIVE, make_score(0, v));
|
||||||
|
|
Loading…
Add table
Reference in a new issue