Skip to content

Commit 9978bfa

Browse files
authored
Fix type instability in constructors.jl (#621)
1 parent 237b079 commit 9978bfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/constructors.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function _default_Fun(f, d::Space)
117117
cf = default_Fun(f, d, 2^logn, Val(false))
118118
maxabsc = maximum(abs,cf.coefficients)
119119
if maxabsc == 0 && maxabsfr == 0
120-
return zeros(d)
120+
return zeros(T, d)
121121
end
122122

123123
b = block(d,length(cf.coefficients))

0 commit comments

Comments
 (0)