X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmaterial.cpp;h=7e212461098d68bc4478f7816562860c9b3212ac;hp=0e1308780dd20d86d22662cceadc3e8473887f74;hb=37e38639279bf58558b92932739da57e7c2e3bdc;hpb=9690cd6295fbed93ee434e7b2e16181e475755ac diff --git a/src/material.cpp b/src/material.cpp index 0e130878..7e212461 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -129,7 +129,7 @@ Entry* probe(const Position& pos) { Value npm_w = pos.non_pawn_material(WHITE); Value npm_b = pos.non_pawn_material(BLACK); - Value npm = clamp(npm_w + npm_b, EndgameLimit, MidgameLimit); + Value npm = Utility::clamp(npm_w + npm_b, EndgameLimit, MidgameLimit); // Map total non-pawn material into [PHASE_ENDGAME, PHASE_MIDGAME] e->gamePhase = Phase(((npm - EndgameLimit) * PHASE_MIDGAME) / (MidgameLimit - EndgameLimit));