From ff53efa37e22d9fc31a8687a7baa243b2039364d Mon Sep 17 00:00:00 2001 From: odow Date: Thu, 18 Mar 2021 09:29:36 +1300 Subject: [PATCH] Fix 32-bit --- src/Utilities/model.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Utilities/model.jl b/src/Utilities/model.jl index f9c7aaa0dc..b9472c0abd 100644 --- a/src/Utilities/model.jl +++ b/src/Utilities/model.jl @@ -6,7 +6,7 @@ abstract type AbstractOptimizer{T} <: MOI.AbstractOptimizer end const AbstractModel{T} = Union{AbstractModelLike{T},AbstractOptimizer{T}} # Variables -function MOI.get(model::AbstractModel, ::MOI.NumberOfVariables)::Int64 +function MOI.get(model::AbstractModel, ::MOI.NumberOfVariables) if model.variable_indices === nothing return model.num_variables_created else @@ -1024,7 +1024,7 @@ for (loop_name, loop_super_type) in [ MOI.ScalarAffineFunction{T}, MOI.ScalarQuadraticFunction{T}, } - num_variables_created::Int64 + num_variables_created::Int # If nothing, no variable has been deleted so the indices of the # variables are VI.(1:num_variables_created) variable_indices::Union{Nothing,Set{VI}}