From fdc8bf19e04b50cd346cb8930a6244a6fe0a62aa Mon Sep 17 00:00:00 2001 From: sowle Date: Fri, 31 May 2024 16:05:52 +0200 Subject: [PATCH] gcc compilation fix --- tests/core_tests/chaingen_main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/core_tests/chaingen_main.cpp b/tests/core_tests/chaingen_main.cpp index 6eb28944..faac4720 100644 --- a/tests/core_tests/chaingen_main.cpp +++ b/tests/core_tests/chaingen_main.cpp @@ -921,8 +921,9 @@ int main(int argc, char* argv[]) size_t run_single_test_hardfork = SIZE_MAX; // SIZE_MAX means all hard forks, other values mean hardfork id if (command_line::has_arg(g_vm, arg_run_single_test)) { + std::string arg = command_line::get_arg(g_vm, arg_run_single_test); std::vector items; - boost::split(items, command_line::get_arg(g_vm, arg_run_single_test), boost::is_any_of("@")); + boost::split(items, arg, boost::is_any_of("@")); CHECK_AND_ASSERT_MES(items.size() > 0, 2, "unable to parse arg_run_single_test"); run_single_test = items[0]; if (items.size() > 1)