Skip to content

Commit 15e4354

Browse files
Update _check_and_convert_maxiters to ensure rounding
1 parent 29309e8 commit 15e4354

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function _check_and_convert_maxiters(maxiters)
4040
if !(isnothing(maxiters)) && maxiters <= 0.0
4141
error("The number of maxiters has to be a non-negative and non-zero number.")
4242
elseif !(isnothing(maxiters))
43-
return convert(Int, maxiters)
43+
return convert(Int, round(maxiters))
4444
end
4545
end
4646

0 commit comments

Comments
 (0)