Skip to content

Commit 767d3bd

Browse files
committed
Update adaptivetransform.jl
1 parent 4ccdecb commit 767d3bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/adaptivetransform.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ increasingtruncations(::BlockedUnitRange) = broadcast(n -> Block.(oneto(n)), (2
2121

2222

2323
function adaptivetransform_ldiv(A::AbstractQuasiArray{U}, f::AbstractQuasiVector{V}) where {U,V}
24-
T = promote_type(eltype(U),eltype(V))
25-
2624
r = checkpoints(A)
2725
fr = f[r]
2826
maxabsfr = norm(fr,Inf)
2927

30-
tol = 20eps(real(typeof(first(fr))))
28+
# don't use V as eltype might be Any
29+
T = promote_type(eltype(U), typeof(first(fr)))
30+
tol = 20eps(real(T))
3131
ax = axes(A,2)
3232

3333
for jr in increasingtruncations(ax)

0 commit comments

Comments
 (0)