From 11128dc36ad4edd5dc18cef8df9b41943b0794eb Mon Sep 17 00:00:00 2001 From: Pierre Date: Sun, 17 Mar 2019 00:25:54 +0800 Subject: [PATCH] Change type of depth_count and depth_sum to double depth_count and depth_sum need to be of type double in order to be used with double atomic_fetch_add(std::atomic *obj, double arg) --- src/UctSearch.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/UctSearch.cpp b/src/UctSearch.cpp index 6c7fd7a..5e8d4dd 100644 --- a/src/UctSearch.cpp +++ b/src/UctSearch.cpp @@ -216,8 +216,8 @@ static std::queue> eval_nn_queue; static std::atomic eval_count_value; static std::atomic eval_count_eog; static double owner_nn[BOARD_MAX]; -static std::atomic depth_count; -static std::atomic depth_sum; +static std::atomic depth_count; +static std::atomic depth_sum; //template