From: Joost VandeVondele Date: Wed, 10 May 2017 01:36:18 +0000 (-0700) Subject: Remove int to int conversion, unused include. X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=99d914985f6ddb1ee22b232d41f17a35e1d34f89 Remove int to int conversion, unused include. No functional change. Closes #1112 --- diff --git a/src/movepick.h b/src/movepick.h index ae2ee381..97b1b3ab 100644 --- a/src/movepick.h +++ b/src/movepick.h @@ -43,10 +43,10 @@ struct HistoryStats { const int D = 324; - assert(abs(int(v)) <= D); // Consistency check for below formula + assert(abs(v) <= D); // Consistency check for below formula - table[c][from][to] -= table[c][from][to] * abs(int(v)) / D; - table[c][from][to] += int(v) * 32; + table[c][from][to] -= table[c][from][to] * abs(v) / D; + table[c][from][to] += v * 32; } private: @@ -70,10 +70,10 @@ struct Stats { const int D = 936; - assert(abs(int(v)) <= D); // Consistency check for below formula + assert(abs(v) <= D); // Consistency check for below formula - table[pc][to] -= table[pc][to] * abs(int(v)) / D; - table[pc][to] += int(v) * 32; + table[pc][to] -= table[pc][to] * abs(v) / D; + table[pc][to] += v * 32; } private: diff --git a/src/thread.h b/src/thread.h index 4d22d643..86e5565f 100644 --- a/src/thread.h +++ b/src/thread.h @@ -22,7 +22,6 @@ #define THREAD_H_INCLUDED #include -#include #include #include #include