Skip to content

Commit 870eea8

Browse files
Merge pull request #849 from SciML/Vaibhavdixit02-patch-1
Update `_check_and_convert_maxiters` to ensure rounding
2 parents 29309e8 + 15e4354 commit 870eea8

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)