Skip to content

Commit df3da2a

Browse files
committed
Fix for Julia v0.6
1 parent 3422b87 commit df3da2a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/constraint.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ nconstraints(f::VAF, s) = MOI.output_dimension(f)
3131
function _allocateconstraint!(m::SOItoMOIBridge, f, s)
3232
ci = CI{typeof(f), typeof(s)}(m.nconstrs)
3333
n = nconstraints(f, s)
34-
m.constrmap[ci] = m.nconstrs .+ (1:n)
34+
# Fails on Julia v0.6
35+
#m.constrmap[ci] = m.nconstrs .+ (1:n)
36+
m.constrmap[ci] = (m.nconstrs + 1):(m.nconstrs + n)
3537
m.nconstrs += n
3638
resize!(m.slackmap, m.nconstrs)
3739
createslack!(m, ci, f, s)

0 commit comments

Comments
 (0)