Skip to content

Commit

Permalink
fix bug I introduced in dinterpo.c
Browse files Browse the repository at this point in the history
  • Loading branch information
hamogu committed Nov 29, 2023
1 parent 4b7e931 commit d362cf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jdmath/src/dinterpo.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ double JDMinterpolate_d (double x, double *xp, double *yp, unsigned int n)

if (n == 1)
return yp[0];
n1 = JDMbinary_search_f(x, xp, n);
n1 = JDMbinary_search_d(x, xp, n);
n0 = n1 - 1;

if (x == xp[n1])
Expand Down

0 comments on commit d362cf2

Please sign in to comment.