X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmisc.cpp;h=a9b1f17eaea6514c19b0244cf2648c87b4921da0;hb=7f142d68179919a507204e7980fff4f79648dbbc;hp=5bf7bae8ede51276ac6f5263ac70781cc3f96972;hpb=bd1c3ed7e32d3df0ceb29cb6959599e3cac2057c;p=stockfish diff --git a/src/misc.cpp b/src/misc.cpp index 5bf7bae8..a9b1f17e 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -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() {