From 9978bfaf733ef2f80b77bb68a737c30716c43248 Mon Sep 17 00:00:00 2001 From: jondeuce <20175323+jondeuce@users.noreply.github.com> Date: Wed, 17 Jan 2024 21:20:35 -0800 Subject: [PATCH] Fix type instability in constructors.jl (#621) --- src/constructors.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/constructors.jl b/src/constructors.jl index 74d2203d..b130a57d 100644 --- a/src/constructors.jl +++ b/src/constructors.jl @@ -117,7 +117,7 @@ function _default_Fun(f, d::Space) cf = default_Fun(f, d, 2^logn, Val(false)) maxabsc = maximum(abs,cf.coefficients) if maxabsc == 0 && maxabsfr == 0 - return zeros(d) + return zeros(T, d) end b = block(d,length(cf.coefficients))