X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftimeman.cpp;h=0348b677f4597ef5aaf3075b604e8f50e16a1e71;hp=9accfbb346a6e2ca77b960378a29a496c3ceeb4f;hb=8454d871ec105749fb5e2e7e9aea9e7c25cfdf6e;hpb=153309e28702d8e5f49f4772bfb61f9f9ed965fc diff --git a/src/timeman.cpp b/src/timeman.cpp index 9accfbb3..0348b677 100644 --- a/src/timeman.cpp +++ b/src/timeman.cpp @@ -18,6 +18,7 @@ */ #include +#include #include #include "search.h" @@ -44,7 +45,7 @@ namespace { double move_importance(int ply) { - return pow((1 + exp((ply - xshift) / xscale)), -skewfactor); + return pow((1 + exp((ply - xshift) / xscale)), -skewfactor) + DBL_MIN; // Ensure non-zero }