Skip to content

Commit 5637a81

Browse files
authored
very minor 0.7 fixes (#1346)
1 parent 4b7208a commit 5637a81

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/containers.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
include("JuMPArray.jl")
77

88
validarrayindexset(::Base.OneTo) = true
9-
validarrayindexset(r::UnitRange) = start(r) == 1
9+
validarrayindexset(r::UnitRange) = first(r) == 1
1010
validarrayindexset(s) = false
1111

1212
"""

src/operators.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Base.:*(lhs::AbstractJuMPScalar) = lhs # make this more generic so extensions do
5252
Base.:+(lhs::AbstractVariableRef, rhs::Number) = (+)( rhs,lhs)
5353
Base.:-(lhs::AbstractVariableRef, rhs::Number) = (+)(-rhs,lhs)
5454
Base.:*(lhs::AbstractVariableRef, rhs::Number) = (*)(rhs,lhs)
55-
Base.:/(lhs::AbstractVariableRef, rhs::Number) = (*)(1./rhs,lhs)
55+
Base.:/(lhs::AbstractVariableRef, rhs::Number) = (*)(1.0/rhs,lhs)
5656
# AbstractVariableRef--AbstractVariableRef
5757
Base.:+(lhs::V, rhs::V) where V <: AbstractVariableRef = GenericAffExpr(0.0, lhs => 1.0, rhs => 1.0)
5858
Base.:-(lhs::V, rhs::V) where V <: AbstractVariableRef = GenericAffExpr(0.0, lhs => 1.0, rhs => -1.0)

0 commit comments

Comments
 (0)