Skip to content

Commit

Permalink
Fix compiling on linux
Browse files Browse the repository at this point in the history
Bench: 11035603
  • Loading branch information
Dannyj1 committed Nov 28, 2023
1 parent 6053725 commit 1828cb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/evaluate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ namespace Zagreus {
uint64_t pawnShieldMask = nortOne(kingBB) | noEaOne(kingBB) | noWeOne(kingBB);
pawnShieldMask |= nortOne(pawnShieldMask);
uint64_t pawnShield = pawnBB & pawnShieldMask;
uint8_t pawnShieldCount = std::min(popcnt(pawnShield), 3ULL);
uint8_t pawnShieldCount = std::min<uint64_t>(popcnt(pawnShield), 3ULL);

whiteMidgameScore += getEvalValue(MIDGAME_PAWN_SHIELD) * pawnShieldCount;
whiteEndgameScore += getEvalValue(ENDGAME_PAWN_SHIELD) * pawnShieldCount;
Expand All @@ -365,7 +365,7 @@ namespace Zagreus {
uint64_t pawnShieldMask = soutOne(kingBB) | soEaOne(kingBB) | soWeOne(kingBB);
pawnShieldMask |= soutOne(pawnShieldMask);
uint64_t pawnShield = pawnBB & pawnShieldMask;
uint8_t pawnShieldCount = std::min(popcnt(pawnShield), 3ULL);
uint8_t pawnShieldCount = std::min<uint64_t>(popcnt(pawnShield), 3ULL);

blackMidgameScore += getEvalValue(MIDGAME_PAWN_SHIELD) * pawnShieldCount;
blackEndgameScore += getEvalValue(ENDGAME_PAWN_SHIELD) * pawnShieldCount;
Expand Down

0 comments on commit 1828cb8

Please sign in to comment.