mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Remove int to int conversion, unused include.
No functional change. Closes #1112
This commit is contained in:
parent
6b4959e3e0
commit
99d914985f
2 changed files with 6 additions and 7 deletions
|
@ -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:
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
#define THREAD_H_INCLUDED
|
||||
|
||||
#include <atomic>
|
||||
#include <bitset>
|
||||
#include <condition_variable>
|
||||
#include <mutex>
|
||||
#include <thread>
|
||||
|
|
Loading…
Add table
Reference in a new issue