Skip to content

Commit 6731e44

Browse files
committed
remove Int
1 parent c2eec5b commit 6731e44

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/besselj.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ end
170170
function besselj(nu::Integer, x::T) where T
171171
abs_nu = abs(nu)
172172
abs_x = abs(x)
173-
sg = iseven(Int(abs_nu)) ? 1 : -1
173+
sg = iseven(abs_nu) ? 1 : -1
174174

175175
Jnu = besselj_positive_args(abs_nu, abs_x)
176176
if nu >= zero(T)

src/bessely.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,11 @@ function bessely(nu::Real, x::T) where T
210210
end
211211
end
212212
end
213+
213214
function bessely(nu::Integer, x::T) where T
214215
abs_nu = abs(nu)
215216
abs_x = abs(x)
216-
sg = iseven(Int(abs_nu)) ? 1 : -1
217+
sg = iseven(abs_nu) ? 1 : -1
217218

218219
Ynu = bessely_positive_args(abs_nu, abs_x)
219220
if nu >= zero(T)

0 commit comments

Comments
 (0)