Skip to content

Commit

Permalink
Merge pull request jump-dev#2175 from dourouc05/patch-1
Browse files Browse the repository at this point in the history
Remove a comment that is no more relevant.
  • Loading branch information
blegat authored Apr 22, 2020
2 parents a1b7da2 + 6d9324e commit 1706c79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/macros.jl
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ _functionize(::MutableArithmetics.Zero) = 0.0
function parse_one_operator_constraint(_error::Function, vectorized::Bool, sense::Val, lhs, rhs)
# Simple comparison - move everything to the LHS.
#
# Note: We add the +0 to this term to account for the pathological case that
# the `lhs` is a `VariableRef` and the `rhs` is a summation with no terms.
# Without the `+0` term, `aff` would evaluate to a `VariableRef` when we
# really want it to be a `GenericAffExpr`.
# `_functionize` deals with the pathological case where the `lhs` is a `VariableRef`
# and the `rhs` is a summation with no terms. `_build_call` should be passed a
# `GenericAffExpr` or a `GenericQuadExpr`, and not a `VariableRef` as would be the case
# without `_functionize`.
if vectorized
func = :($lhs .- $rhs)
else
Expand Down

0 comments on commit 1706c79

Please sign in to comment.