Skip to content

Commit 638f5cd

Browse files
committed
integer division in mod
1 parent 2e6125c commit 638f5cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AlphaStableDistributions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ function Distributions.fit(d::Type{<:AlphaSubGaussian}, x::AbstractVector{T}, m:
280280
for i in 1:m
281281
tempxlen = xlen-mod(xlen, i)
282282
xtemp = reshape(x[1:end-mod(xlen, i)], i, tempxlen÷i)
283-
if mod(tempxlen/i, 2) != 0
283+
if mod(tempxlen÷i, 2) != 0
284284
xtemp = xtemp[:, 1:end-1]
285285
tempxlen = size(xtemp, 1)*size(xtemp, 2)
286286
end

0 commit comments

Comments
 (0)