From 99d914985f6ddb1ee22b232d41f17a35e1d34f89 Mon Sep 17 00:00:00 2001 From: Joost VandeVondele Date: Tue, 9 May 2017 18:36:18 -0700 Subject: [PATCH] Remove int to int conversion, unused include. No functional change. Closes #1112 --- src/movepick.h | 12 ++++++------ src/thread.h | 1 - 2 files changed, 6 insertions(+), 7 deletions(-) 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 -- 2.39.2