From 7908f09148ad7ced4e0bdaa7be686b4f565ee6bf Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Mon, 29 Oct 2018 13:33:22 +0200 Subject: [PATCH] tests: perf_fast_forward: massage result of sprint() into std::string sprint() returns std::string(), but the new format() returns an sstring. Usually an sstring is wanted but in this case an sstring will fail as it is added to an std::string. Fix the failure (after spring->format conversion) by converting to an std::string. --- tests/perf/perf_fast_forward.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/perf/perf_fast_forward.cc b/tests/perf/perf_fast_forward.cc index 2b6993dfef..30bfde1257 100644 --- a/tests/perf/perf_fast_forward.cc +++ b/tests/perf/perf_fast_forward.cc @@ -350,7 +350,7 @@ public: const std::string test_run_count_name = "test_run_count"; params_value[test_run_count_name.c_str()] = test_run_count; - params_value[all_params_names + "," + test_run_count_name] = all_params_values + sprint(",%d", test_run_count); + params_value[all_params_names + "," + test_run_count_name] = all_params_values + std::string(sprint(",%d", test_run_count)); Json::Value stats_value{Json::objectValue}; for (size_t i = 0; i < stats_names.size(); ++i) {