X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=fbde9d115cd8287485d235ff0d0caa296e8ded4e;hp=912c05fc8b394942e46a864235dd9c29dda5d8e0;hb=a71209868bdd8361d0607acf7725f70e9d1f2019;hpb=7a1ff6d8ff39bb9e6844d24467899d47e942486f diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 912c05fc..fbde9d11 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -288,7 +288,7 @@ namespace Eval { const int MaxSlope = 30; const int Peak = 1280; - for (int t = 0, i = 1; i < 100; i++) + for (int t = 0, i = 1; i < 100; ++i) { t = std::min(Peak, std::min(int(0.4 * i * i), t + MaxSlope));