From d00b3306487271144472341872407f3440c815a5 Mon Sep 17 00:00:00 2001 From: Yves Delley Date: Mon, 16 Sep 2024 20:43:32 +0200 Subject: [PATCH] fixed pedantic error --- src/core/include/mp-units/bits/fixed_point.h | 4 ++-- test/static/CMakeLists.txt | 2 +- test/static/{fixed_point.cpp => fixed_point_test.cpp} | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename test/static/{fixed_point.cpp => fixed_point_test.cpp} (100%) diff --git a/src/core/include/mp-units/bits/fixed_point.h b/src/core/include/mp-units/bits/fixed_point.h index 1a009c4f2..cc8590651 100644 --- a/src/core/include/mp-units/bits/fixed_point.h +++ b/src/core/include/mp-units/bits/fixed_point.h @@ -109,7 +109,7 @@ struct double_width_int { auto ret = ret_t::wide_product_of(rhs, lhs.lo); ret.hi += lhs.hi * rhs; return ret; - }; + } template friend constexpr auto operator*(Lhs lhs, const double_width_int& rhs) { @@ -154,7 +154,7 @@ struct double_width_int { } return ret_t{res_hi, res_lo}; } - }; + } template requires(std::numeric_limits::digits <= base_width) diff --git a/test/static/CMakeLists.txt b/test/static/CMakeLists.txt index 9abc62c5d..8f851abe0 100644 --- a/test/static/CMakeLists.txt +++ b/test/static/CMakeLists.txt @@ -36,7 +36,7 @@ add_library( custom_rep_test_min_impl.cpp dimension_test.cpp dimension_symbol_test.cpp - fixed_point.cpp + fixed_point_test.cpp fixed_string_test.cpp hep_test.cpp iau_test.cpp diff --git a/test/static/fixed_point.cpp b/test/static/fixed_point_test.cpp similarity index 100% rename from test/static/fixed_point.cpp rename to test/static/fixed_point_test.cpp