From d718f90638301bc2b7e8d2372cfb71e6b2e1ddba Mon Sep 17 00:00:00 2001 From: Gaurav Arya Date: Sat, 21 Oct 2023 11:34:59 -0400 Subject: [PATCH] Add subtype --- src/definitions.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/definitions.jl b/src/definitions.jl index bda4c60..799c6a8 100644 --- a/src/definitions.jl +++ b/src/definitions.jl @@ -683,7 +683,7 @@ function adjoint_mul(p::Plan{T}, x::AbstractArray, ::FFTAdjointStyle) where {T} pinv = inv(p) # Optimization: when pinv is a ScaledPlan, check if we can avoid a loop over x. # Even if not, ensure that we do only one pass by combining the normalization with the plan. - RT = AbstractArray{T} # canonicalize eltype of returned array to be extra safe about type stability + RT = AbstractArray{<:T} # canonicalize eltype of returned array to be extra safe about type stability if pinv isa ScaledPlan && pinv.scale == N return convert(RT, pinv.p * x) else