Update resid-fp to 2.12.0 from libsidplayfp

This commit is contained in:
Jasmine Iwanek
2024-11-27 01:18:06 -05:00
parent de0cd423b9
commit 1e99bf87b2
46 changed files with 1634 additions and 1424 deletions

View File

@@ -92,11 +92,11 @@ Spline::Point Spline::evaluate(double x) const
{
if ((x < c->x1) || (x > c->x2))
{
for (size_t i = 0; i < params.size(); i++)
for (const auto & param : params)
{
if (x <= params[i].x2)
if (x <= param.x2)
{
c = &params[i];
c = &param;
break;
}
}