svl/source/numbers/zforfind.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 0410842d9f2b3a8de2112e0224c76628656be60f Author: Mike Kaganski <[email protected]> AuthorDate: Sun Sep 21 14:48:08 2025 +0500 Commit: Mike Kaganski <[email protected]> CommitDate: Sun Sep 21 13:52:05 2025 +0200 ImpSvNumberInputScan::StringToDouble doesn't handle scientific notation Pass respective flags to from_chars, which may shave a cycle or two :-) Change-Id: I9eec84548ec9b17e7ce403a9a9befab732c30977 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191286 Tested-by: Jenkins Reviewed-by: Mike Kaganski <[email protected]> diff --git a/svl/source/numbers/zforfind.cxx b/svl/source/numbers/zforfind.cxx index 4eee2ad9b14f..9ba2f650d607 100644 --- a/svl/source/numbers/zforfind.cxx +++ b/svl/source/numbers/zforfind.cxx @@ -177,7 +177,7 @@ double ImpSvNumberInputScan::StringToDouble( std::u16string_view aStr, bool bFor double result = 0; (void)fast_float::from_chars( - buf, p, result, fast_float::chars_format::general | fast_float::chars_format::no_infnan); + buf, p, result, fast_float::chars_format::fixed | fast_float::chars_format::no_infnan); return result; }
