Skip to content

Commit

Permalink
Merge branch 'cmake_gtest' of https://github.com/Ondsel-Development/O…
Browse files Browse the repository at this point in the history
…ndselSolver into cmake_gtest
  • Loading branch information
aiksiongkoh committed Aug 30, 2024
2 parents bac92a0 + 8765663 commit 141b27c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OndselSolver/GeneralSpline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ double MbD::GeneralSpline::derivativeAt(size_t n, double xxx)
calcIndexAndDeltaFor(xxx);
auto& derivsi = derivs->at(index);
double sum = 0.0;
for (int j = (int)degree; j >= n + 1; j--) //Use int because of decrement
for (int j = (int)degree; j >= (int) n + 1; j--) //Use int because of decrement
{
sum = (sum + derivsi->at((size_t)j - 1)) * delta / (j - n);
}
Expand Down

0 comments on commit 141b27c

Please sign in to comment.