Skip to content

Commit

Permalink
Merge pull request #849 from SciML/Vaibhavdixit02-patch-1
Browse files Browse the repository at this point in the history
Update `_check_and_convert_maxiters` to ensure rounding
  • Loading branch information
Vaibhavdixit02 authored Oct 28, 2024
2 parents 29309e8 + 15e4354 commit 870eea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function _check_and_convert_maxiters(maxiters)
if !(isnothing(maxiters)) && maxiters <= 0.0
error("The number of maxiters has to be a non-negative and non-zero number.")
elseif !(isnothing(maxiters))
return convert(Int, maxiters)
return convert(Int, round(maxiters))
end
end

Expand Down

0 comments on commit 870eea8

Please sign in to comment.