Skip to content

Commit 738435a

Browse files
authored
Fix use of floatmax (#494)
1 parent f8fd782 commit 738435a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "SpecialFunctions"
22
uuid = "276daf66-3868-5448-9aa4-cd146d93841b"
3-
version = "2.5.0"
3+
version = "2.5.1"
44

55
[deps]
66
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"

src/expint.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ function En_cf_nogamma(ν::Number, z::Number, n::Int=1000)
166166
A::typeof(B) = 1
167167
Aprev::typeof(B) = 1
168168
ϵ = 10*eps(real(B))
169-
scale = sqrt(floatmax(real(A)))
169+
scale = sqrt(floatmax(typeof(real(A))))
170170

171171
# two recurrence steps / loop
172172
iters = 1
@@ -212,7 +212,7 @@ function En_cf_gamma(ν::Number, z::Number, n::Int=1000)
212212
Bprev = zero(B)
213213
Aprev = oneunit(A)
214214
ϵ = 10*eps(real(B))
215-
scale = sqrt(floatmax(real(A)))
215+
scale = sqrt(floatmax(typeof(real(A))))
216216

217217
iters = 0
218218
for i = 1:n

0 commit comments

Comments
 (0)