From d362cf221585a03706be7e87839c75126fb551f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=2E=20Moritz=20G=C3=BCnther?= Date: Wed, 29 Nov 2023 09:57:01 -0500 Subject: [PATCH] fix bug I introduced in dinterpo.c --- jdmath/src/dinterpo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jdmath/src/dinterpo.c b/jdmath/src/dinterpo.c index 15e5af7..65620e5 100644 --- a/jdmath/src/dinterpo.c +++ b/jdmath/src/dinterpo.c @@ -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])