X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmisc.cpp;h=b9a802ad3c3bdb4ccb2afe2abf06f2841f41fd8c;hp=495ad4a8cee778a2c75a4f8620ca3af63222f46a;hb=034a2b04f2fc1017721b4f3fc12895e5f8a190bd;hpb=4d120ee02edff250a6661e63d913e70efc37e2b6 diff --git a/src/misc.cpp b/src/misc.cpp index 495ad4a8..b9a802ad 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -28,7 +28,7 @@ using namespace std; /// Version number. If Version is left empty, then compile date, in the /// format DD-MM-YY, is shown in engine_info. -static const string Version = "4"; +static const string Version = ""; /// engine_info() returns the full name of the current Stockfish version. This @@ -63,9 +63,9 @@ const string engine_info(bool to_uci) { static uint64_t hits[2], means[2]; -void dbg_hit_on(bool b) { hits[0]++; if (b) hits[1]++; } +void dbg_hit_on(bool b) { ++hits[0]; if (b) ++hits[1]; } void dbg_hit_on_c(bool c, bool b) { if (c) dbg_hit_on(b); } -void dbg_mean_of(int v) { means[0]++; means[1] += v; } +void dbg_mean_of(int v) { ++means[0]; means[1] += v; } void dbg_print() { @@ -75,7 +75,7 @@ void dbg_print() { if (means[0]) cerr << "Total " << means[0] << " Mean " - << (float)means[1] / means[0] << endl; + << (double)means[1] / means[0] << endl; }