Skip to content

Commit 4d82c05

Browse files
committed
match complex types for _li2 and li2_approx
1 parent bb9df04 commit 4d82c05

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Li2.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ li2(z::Real) = li2(Complex(z))
237237

238238
_li2(z::ComplexF16) = oftype(z, _li2(ComplexF32(z)))
239239

240-
function _li2(z::Complex{T})::Complex{T} where T
240+
function _li2(z::Complex{T})::Complex{T} where {T<:Union{Float32, Float64}}
241241
rz, iz = reim(z)
242242

243243
if iszero(iz)
@@ -270,7 +270,7 @@ function _li2(z::Complex{T})::Complex{T} where T
270270
end
271271
end
272272

273-
function _li2(z::Complex{BigFloat})::Complex{BigFloat}
273+
function _li2(z::Complex{T})::Complex{T} where T
274274
rz, iz = reim(z)
275275

276276
if iszero(iz)

0 commit comments

Comments
 (0)