Skip to content

Commit a007136

Browse files
authored
Backport: Fix type instability in constructors.jl (JuliaApproximation#623)
1 parent f3979ed commit a007136

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ApproxFunBase"
22
uuid = "fbd15aa5-315a-5a7d-a8a4-24992e37be05"
3-
version = "0.8.62"
3+
version = "0.8.63"
44

55
[deps]
66
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"

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)