From b86fc8e9ee4f40f88c3ec443212a51e9cef05ded Mon Sep 17 00:00:00 2001 From: ThePhD Date: Thu, 4 Jan 2024 17:01:45 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=20Ensure=20transfer=20of=20pivot?= =?UTF-8?q?=20values?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../include/ztd/text/benchmarks/fast_transcode.ztd.text.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/benchmarks/conversion_speed/include/ztd/text/benchmarks/fast_transcode.ztd.text.hpp b/benchmarks/conversion_speed/include/ztd/text/benchmarks/fast_transcode.ztd.text.hpp index 28888acd..1cba72c9 100644 --- a/benchmarks/conversion_speed/include/ztd/text/benchmarks/fast_transcode.ztd.text.hpp +++ b/benchmarks/conversion_speed/include/ztd/text/benchmarks/fast_transcode.ztd.text.hpp @@ -188,7 +188,7 @@ auto text_transcode(::ztd::tag, ztd::span from_state, to_state, pivot); return TranscodeResult(basic_result.input, basic_result.output.begin(), from_state, to_state, basic_result.error_code, basic_result.error_count, std::forward(pivot), - ztd::text::encoding_error::ok, 0); + basic_result.pivot_error_code, basic_result.pivot_error_count); } } @@ -241,7 +241,8 @@ auto text_transcode(::ztd::tag, ztd::span ::std::forward(from_error_handler), ::std::forward(to_error_handler), from_state, to_state, pivot); return TranscodeResult(basic_result.input, basic_result.output, from_state, to_state, basic_result.error_code, - basic_result.error_count, std::forward(pivot), ztd::text::encoding_error::ok, 0); + basic_result.error_count, std::forward(pivot), basic_result.pivot_error_code, + basic_result.pivot_error_count); } #endif