Skip to content

Commit 2b2ff9c

Browse files
authored
Apply suggestion from @inkydragon
1 parent 789c46e commit 2b2ff9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ellip.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function _ellipk(m::Float64)
3939
isnan(m) && return NaN
4040
(m === -Inf) && return 0.0
4141

42-
flag_is_m_neg = false
42+
flag_is_m_neg = m < 0.0
4343
if flag_is_m_neg
4444
x = m / (m-1) #dealing with negative args
4545
else

0 commit comments

Comments
 (0)