diff --git a/src/interpolation_methods.jl b/src/interpolation_methods.jl index e00adc59..44bd1561 100644 --- a/src/interpolation_methods.jl +++ b/src/interpolation_methods.jl @@ -1,5 +1,5 @@ function _interpolate(interp, t) - ((t < interp.t[1] || t > interp.t[end]) && !interp.extrapolate) && + (!interp.extrapolate && (t < interp.t[1] || t > interp.t[end])) && throw(ExtrapolationError()) _interpolate(interp, t, firstindex(interp.t) - 1)[1] end