diff --git a/benchmark/runtime/float/repeated.cpp b/benchmark/runtime/float/repeated.cpp index 0aa0c39a..8a4de0a1 100644 --- a/benchmark/runtime/float/repeated.cpp +++ b/benchmark/runtime/float/repeated.cpp @@ -210,4 +210,3 @@ static void scan_float_repeated_fastfloat(benchmark::State& state) } BENCHMARK_TEMPLATE(scan_float_repeated_fastfloat, float); BENCHMARK_TEMPLATE(scan_float_repeated_fastfloat, double); -BENCHMARK_TEMPLATE(scan_float_repeated_fastfloat, long double); diff --git a/benchmark/runtime/float/single.cpp b/benchmark/runtime/float/single.cpp index e06cd138..6819621b 100644 --- a/benchmark/runtime/float/single.cpp +++ b/benchmark/runtime/float/single.cpp @@ -185,4 +185,3 @@ static void scan_float_single_fastfloat(benchmark::State& state) } BENCHMARK_TEMPLATE(scan_float_single_fastfloat, float); BENCHMARK_TEMPLATE(scan_float_single_fastfloat, double); -BENCHMARK_TEMPLATE(scan_float_single_fastfloat, long double); diff --git a/cmake/dependencies.cmake b/cmake/dependencies.cmake index 689110b6..a1efa411 100644 --- a/cmake/dependencies.cmake +++ b/cmake/dependencies.cmake @@ -111,7 +111,7 @@ else () FetchContent_Declare( fast_float GIT_REPOSITORY https://github.com/fastfloat/fast_float.git - GIT_TAG v6.1.6 + GIT_TAG v7.0.0 GIT_SHALLOW TRUE ) diff --git a/src/scn/impl.cpp b/src/scn/impl.cpp index aa0d3343..ab859a41 100644 --- a/src/scn/impl.cpp +++ b/src/scn/impl.cpp @@ -721,15 +721,17 @@ scan_expected fast_float_fallback(impl_init_data data, struct fast_float_impl_base : impl_base { fast_float::chars_format get_flags() const { - unsigned format_flags{}; + fast_float::chars_format format_flags{}; if ((m_options & float_reader_base::allow_fixed) != 0) { - format_flags |= fast_float::fixed; + format_flags = + static_cast(format_flags | fast_float::chars_format::fixed); } if ((m_options & float_reader_base::allow_scientific) != 0) { - format_flags |= fast_float::scientific; + format_flags = + static_cast(format_flags | fast_float::chars_format::scientific); } - return static_cast(format_flags); + return format_flags; } };