Skip to content

Commit 180f5cd

Browse files
Fix utilities methods
1 parent 21b8a8c commit 180f5cd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/utilities.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ _complex_float_type(T::Type{<:Complex}) = T # Allow other untracked Complex type
198198

199199
_convert_eltype_wordsize(::Type{T}, ::Val{64}) where {T<:Int} = Int64
200200
_convert_eltype_wordsize(::Type{T}, ::Val{32}) where {T<:Int} = Int32
201-
_convert_eltype_wordsize(::Type{T}, ::Val{64}) where {T<:Number} = Float64
202-
_convert_eltype_wordsize(::Type{T}, ::Val{32}) where {T<:Number} = Float32
203-
_convert_eltype_wordsize(::Type{Complex{T}}, ::Val{64}) where {T<:Union{Int,Number}} = ComplexF64
204-
_convert_eltype_wordsize(::Type{Complex{T}}, ::Val{32}) where {T<:Union{Int,Number}} = ComplexF32
201+
_convert_eltype_wordsize(::Type{T}, ::Val{64}) where {T<:AbstractFloat} = Float64
202+
_convert_eltype_wordsize(::Type{T}, ::Val{32}) where {T<:AbstractFloat} = Float32
203+
_convert_eltype_wordsize(::Type{Complex{T}}, ::Val{64}) where {T<:Union{Int,AbstractFloat}} = ComplexF64
204+
_convert_eltype_wordsize(::Type{Complex{T}}, ::Val{32}) where {T<:Union{Int,AbstractFloat}} = ComplexF32

0 commit comments

Comments
 (0)