mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Fix dbg_mean_of() for negative numbers
Type should be int64_t instead of uint64_t No functional change.
This commit is contained in:
committed by
Marco Costalba
parent
553ead429d
commit
13b9e1e098
@@ -61,7 +61,7 @@ const string engine_info(bool to_uci) {
|
|||||||
|
|
||||||
/// Debug functions used mainly to collect run-time statistics
|
/// 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(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_hit_on_c(bool c, bool b) { if (c) dbg_hit_on(b); }
|
||||||
|
|||||||
Reference in New Issue
Block a user