Fix MSVC 2012 64bits warnings

Reported by Rein.

No functional change.
This commit is contained in:
Marco Costalba
2012-09-14 09:42:59 +02:00
parent e0bd0f250b
commit afcee1e8a4
4 changed files with 24 additions and 24 deletions

View File

@@ -111,7 +111,7 @@ void benchmark(const Position& current, istream& is) {
int64_t nodes = 0;
Search::StateStackPtr st;
Time::point t = Time::now();
Time::point elapsed = Time::now();
for (size_t i = 0; i < fens.size(); i++)
{
@@ -133,10 +133,10 @@ void benchmark(const Position& current, istream& is) {
}
}
int e = Time::now() - t + 1; // Assure positive to avoid a 'divide by zero'
elapsed = Time::now() - elapsed + 1; // Assure positive to avoid a 'divide by zero'
cerr << "\n==========================="
<< "\nTotal time (ms) : " << e
<< "\nTotal time (ms) : " << elapsed
<< "\nNodes searched : " << nodes
<< "\nNodes/second : " << 1000 * nodes / e << endl;
<< "\nNodes/second : " << 1000 * nodes / elapsed << endl;
}