From 13b9e1e09811560d0120a8586c7418fb3640d626 Mon Sep 17 00:00:00 2001 From: Stephane Nicolet Date: Wed, 5 Mar 2014 08:51:02 +0100 Subject: [PATCH] Fix dbg_mean_of() for negative numbers Type should be int64_t instead of uint64_t No functional change. --- src/misc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc.cpp b/src/misc.cpp index 99c00ebe..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); } -- 2.39.2