Skip to content

Commit 2575b8b

Browse files
committed
use ===
1 parent d542b61 commit 2575b8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ellip.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ ellipk(m::Real) = _ellipk(float(m))
3737

3838
function _ellipk(m::Float64)
3939
isnan(m) && return NaN
40-
(m == -Inf) && return 0.0
40+
(m === -Inf) && return 0.0
4141

4242
flag_is_m_neg = false
4343
if m < 0.0
@@ -211,7 +211,7 @@ ellipe(m::Real) = _ellipe(float(m))
211211

212212
function _ellipe(m::Float64)
213213
isnan(m) && return NaN
214-
(m == -Inf) && return Inf
214+
(m === -Inf) && return Inf
215215

216216
flag_is_m_neg = false
217217
if m < 0.0

0 commit comments

Comments
 (0)