X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmisc.cpp;h=13923a7b901a75b44ed879a610bf90c1d2e63bdb;hp=b650b96094a66d4a0fbaa0c4ce20a86b3d143e42;hb=13b9e1e09811560d0120a8586c7418fb3640d626;hpb=c9dcda6ac488c0058ebd567e1f52e30b8cd0db20 diff --git a/src/misc.cpp b/src/misc.cpp index b650b960..13923a7b 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -61,7 +61,7 @@ const string engine_info(bool to_uci) { /// Debug functions used mainly to collect run-time statistics -static uint64_t hits[2], means[2]; +static int64_t hits[2], means[2]; 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); } @@ -144,10 +144,10 @@ std::ostream& operator<<(std::ostream& os, SyncCout sc) { static Mutex m; - if (sc == io_lock) + if (sc == IO_LOCK) m.lock(); - if (sc == io_unlock) + if (sc == IO_UNLOCK) m.unlock(); return os;