Skip to content

Commit 79e4f02

Browse files
committed
Fix for 32 bits
1 parent a8bc51f commit 79e4f02

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/SemidefiniteOptInterface.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -162,15 +162,15 @@ MOI.get(m::SOItoMOIBridge, s::SolverStatus) = MOI.get(m.sdoptimizer, s)
162162

163163
MOI.get(m::SOItoMOIBridge, ::MOI.ResultCount) = 1
164164

165-
function _getblock(M, blk::Int, s::Type{<:Union{NS, ZS}})
165+
function _getblock(M, blk::Integer, s::Type{<:Union{NS, ZS}})
166166
diag(block(M, blk))
167167
end
168-
function _getblock(M, blk::Int, s::Type{<:PS})
168+
function _getblock(M, blk::Integer, s::Type{<:PS})
169169
-diag(block(M, blk))
170170
end
171171
# Vectorized length for matrix dimension d
172172
sympackedlen(d::Integer) = (d*(d+1)) >> 1
173-
function _getblock(M::AbstractMatrix{T}, blk::Int, s::Type{<:DS}) where T
173+
function _getblock(M::AbstractMatrix{T}, blk::Integer, s::Type{<:DS}) where T
174174
B = block(M, blk)
175175
d = Compat.LinearAlgebra.checksquare(B)
176176
n = sympackedlen(d)
@@ -185,17 +185,17 @@ function _getblock(M::AbstractMatrix{T}, blk::Int, s::Type{<:DS}) where T
185185
@assert k == n
186186
v
187187
end
188-
function getblock(M, blk::Int, s::Type{<:MOI.AbstractScalarSet})
188+
function getblock(M, blk::Integer, s::Type{<:MOI.AbstractScalarSet})
189189
vd = _getblock(M, blk, s)
190190
@assert length(vd) == 1
191191
vd[1]
192192
end
193-
function getblock(M, blk::Int, s::Type{<:MOI.AbstractVectorSet})
193+
function getblock(M, blk::Integer, s::Type{<:MOI.AbstractVectorSet})
194194
_getblock(M, blk, s)
195195
end
196196

197197
getvarprimal(m::SOItoMOIBridge, blk::Integer, S) = getblock(getX(m.sdoptimizer), blk, S)
198-
function getvardual(m::SOItoMOIBridge, blk::Int, S)
198+
function getvardual(m::SOItoMOIBridge, blk::Integer, S)
199199
getblock(getZ(m.sdoptimizer), blk, S)
200200
end
201201

@@ -223,7 +223,7 @@ function _getattribute(m::SOItoMOIBridge, ci::CI{<:AVF}, f)
223223
f.(m, m.constrmap[ci])
224224
end
225225

226-
function getslack(m::SOItoMOIBridge{T}, c::Int) where T
226+
function getslack(m::SOItoMOIBridge{T}, c::Integer) where T
227227
X = getX(m.sdoptimizer)
228228
blk, i, j, coef = m.slackmap[c]
229229
if iszero(blk)
@@ -274,7 +274,7 @@ function MOI.get(m::SOItoMOIBridge, ::MOI.ConstraintDual, ci::CI{<:VF, S}) where
274274
end
275275
end
276276

277-
function getdual(m::SOItoMOIBridge{T}, c::Int) where T
277+
function getdual(m::SOItoMOIBridge{T}, c::Integer) where T
278278
if c == 0
279279
zero(T)
280280
else

0 commit comments

Comments
 (0)