removed extra const on return type, added cast (#177)
All checks were successful
Build on RHEL9 / build (push) Successful in 2m31s
Build on RHEL8 / build (push) Successful in 2m34s

Fixed warnings on apple clang:

- removed extra const on return type
- added cast to suppress a float to double conversion warning
This commit is contained in:
Erik Fröjdh
2025-05-20 15:27:38 +02:00
committed by GitHub
parent 81588fba3b
commit a6eebbe9bd
3 changed files with 5 additions and 5 deletions

View File

@@ -105,7 +105,7 @@ std::array<double, 3> gaus_init_par(const NDView<double, 1> x, const NDView<doub
auto delta = x[1] - x[0];
start_par[2] =
std::count_if(y.begin(), y.end(),
[e, delta](double val) { return val > *e / 2; }) *
[e](double val) { return val > *e / 2; }) *
delta / 2.35;
return start_par;