From 87bce974c9341af7d70f7c78937363656a8a6cfc Mon Sep 17 00:00:00 2001 From: qgymib <4520263+qgymib@users.noreply.github.com> Date: Wed, 27 Mar 2024 10:17:38 +0800 Subject: [PATCH] fix: build error when used in C++ source code files. --- include/cutest.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cutest.h b/include/cutest.h index 035a7cd9..7b8fad48 100644 --- a/include/cutest.h +++ b/include/cutest.h @@ -222,7 +222,7 @@ extern "C" { unsigned long number_of_parameterized_data = sizeof(s_parameterized_userdata) / sizeof(s_parameterized_userdata[0]);\ unsigned long i = 0;\ for (i = 0; i < number_of_parameterized_data; i++) {\ - s_tests[i].node = (cutest_map_node_t){ NULL, NULL, NULL };\ + s_tests[i].node = { NULL, NULL, NULL };\ s_tests[i].info.fixture_name = #fixture;\ s_tests[i].info.case_name = #test;\ s_tests[i].stage.setup = s_cutest_fixture_setup_##fixture;\