Skip to content

Commit 1178d1c

Browse files
committed
Fix type stability
1 parent 08f4b0f commit 1178d1c

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
@@ -191,9 +191,9 @@ function fft2pow2radial!(out::Array{T}, s_fft::Matrix{Complex{T}}, n1::Int, n2::
191191
wc = zeros(Int, kmax) # wave count for radial average
192192
if n1 == nmin # scale the wavevector for non-square s_fft
193193
c1 = 1
194-
c2 = n1/n2
194+
c2 = div(n1, n2)
195195
else
196-
c1 = n2/n1
196+
c1 = div(n2, n1)
197197
c2 = 1
198198
end
199199

0 commit comments

Comments
 (0)