From d97e1dc95556fc991d8fc18e345680d1155cd0d3 Mon Sep 17 00:00:00 2001 From: sowle Date: Fri, 27 May 2022 20:48:42 +0200 Subject: [PATCH] more compilation fixes --- tests/performance_tests/is_out_to_acc.h | 2 +- tests/performance_tests/threads_pool_tests.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/performance_tests/is_out_to_acc.h b/tests/performance_tests/is_out_to_acc.h index 7af0cd22..60e7fd33 100644 --- a/tests/performance_tests/is_out_to_acc.h +++ b/tests/performance_tests/is_out_to_acc.h @@ -17,7 +17,7 @@ public: bool test() { - const currency::txout_to_key& tx_out = boost::get(boost::get(m_tx.vout[0]).target); + const currency::txout_to_key& tx_out = boost::get(boost::get(m_tx.vout[0]).target); return currency::is_out_to_acc(m_bob.get_keys(), tx_out, m_tx_pub_key, 0); } }; diff --git a/tests/performance_tests/threads_pool_tests.h b/tests/performance_tests/threads_pool_tests.h index 6999ac30..1532263c 100644 --- a/tests/performance_tests/threads_pool_tests.h +++ b/tests/performance_tests/threads_pool_tests.h @@ -15,7 +15,7 @@ void thread_pool_tests_simple() { utils::threads_pool pool; pool.init(); - std::atomic count_jobs_finished = 0; + std::atomic count_jobs_finished(0); size_t i = 0; for (; i != 10; i++) { @@ -36,7 +36,7 @@ void thread_pool_tests() { utils::threads_pool pool; pool.init(); - std::atomic count_jobs_finished = 0; + std::atomic count_jobs_finished(0); utils::threads_pool::jobs_container jobs; size_t i = 0;