X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Ftimeman.cpp;h=0348b677f4597ef5aaf3075b604e8f50e16a1e71;hb=8454d871ec105749fb5e2e7e9aea9e7c25cfdf6e;hp=9accfbb346a6e2ca77b960378a29a496c3ceeb4f;hpb=c9dcda6ac488c0058ebd567e1f52e30b8cd0db20;p=stockfish 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 }