Skip to content

Commit

Permalink
valid type
Browse files Browse the repository at this point in the history
  • Loading branch information
matbesancon committed Dec 12, 2024
1 parent ab0421a commit 313e568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ end

function MOI.get(model::Optimizer, ::MOI.NodeLimit)
value = MOI.get(model, MOI.RawOptimizerAttribute("mip_max_nodes"))
return value == typemax(Int32) ? nothing : Float64(value)
return value == typemax(Int32) ? nothing : Int(value)
end

###
Expand Down

0 comments on commit 313e568

Please sign in to comment.