Skip to content

Commit f73583b

Browse files
committed
32-bits fix
1 parent fec457d commit f73583b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lphrep.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ function LPHRep(model::MOI.ModelLike)
2121
MOI.copy_to(MOI.Bridges.full_bridge_optimizer(_model, Float64), model)
2222
return LPHRep(_model)
2323
end
24-
FullDim(rep::LPHRep) = MOI.get(rep.model, MOI.NumberOfVariables())
24+
# returns `Int64` so need to convert for 32-bit system
25+
FullDim(rep::LPHRep) = convert(Int, MOI.get(rep.model, MOI.NumberOfVariables()))
2526

2627
hvectortype(::Type{LPHRep{T}}) where {T} = SparseVector{T, Int}
2728
similar_type(::Type{LPHRep{S}}, ::FullDim, ::Type{T}) where {S, T} = LPHRep{T}

0 commit comments

Comments
 (0)