Skip to content

Commit 399f4a9

Browse files
committed
kj1
make `@code_warntype` prettier
1 parent 3a52e78 commit 399f4a9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/periodograms.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ function fft2pow2radial!(out::Array{T}, s_fft::Matrix{Complex{T}}, n1::Int, n2::
201201

202202
@inbounds begin
203203
for j = 1:n2
204-
kj2 = ifelse(j <= n2>>1 + 1, j-1, -n2+j-1)
205-
kj2 = (kj2*c2)^2
204+
kj1 = ifelse(j <= n2>>1 + 1, j-1, -n2+j-1)
205+
kj2 = (kj1 * c2)^2
206206

207207
wavenum = round(Int, sqrt_muladd(c1 * (1 - 1), kj2)) + 1
208208
if wavenum<=kmax

0 commit comments

Comments
 (0)