Skip to content

Commit

Permalink
Fix type instability in constructors.jl (#621)
Browse files Browse the repository at this point in the history
  • Loading branch information
jondeuce authored Jan 18, 2024
1 parent 237b079 commit 9978bfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/constructors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 9978bfa

Please sign in to comment.