Skip to content

Commit aca66cf

Browse files
Merge pull request #49 from JuliaOpt/cb/fix07
Fixes for julia 0.7
2 parents 242ef3a + 48945da commit aca66cf

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ os:
44
- osx
55
julia:
66
- 0.6
7+
- 0.7
78
- nightly
89
env:
910
matrix:

REQUIRE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
julia 0.6
22
GLPK 0.2.8
33
MathProgBase 0.5 0.8
4-
Compat 0.17.0
4+
Compat 0.66

src/GLPKInterfaceBase.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function MPB.loadproblem!(lpm::GLPKMathProgModel, A::AbstractMatrix, collb, colu
4444
checksize(rowub, m, "rowub")
4545
checksize(obj, n, "obj")
4646

47-
(ia, ja, ar) = findnz(A)
47+
(ia, ja, ar) = findnz(sparse(A))
4848

4949
GLPK.erase_prob(lp)
5050

src/GLPKInterfaceMIP.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ function MPB.LinearQuadraticModel(s::GLPKSolverMIP)
160160
lpm.param.presolve = GLPK.ON
161161
end
162162

163-
lpm.param.cb_func = cfunction(_internal_callback, Cvoid, Tuple{Ptr{Cvoid}, Ptr{Cvoid}})
163+
lpm.param.cb_func = @cfunction(_internal_callback, Cvoid, (Ptr{Cvoid}, Ptr{Cvoid}))
164164
lpm.param.cb_info = pointer_from_objref(lpm.cbdata)
165165

166166
for (k,v) in s.opts

0 commit comments

Comments
 (0)