Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Oct 29, 2023
1 parent 5798da9 commit 2fe0a5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aff_expr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ function _eval_as_variable(f::F, x::GenericAffExpr, args...) where {F}
"Cannot call $f with $x because it is not a real-valued affine " *
"expression of one variable.",
)
elseif !isone(first(keys(x.terms)))
elseif !isone(first(values(x.terms)))
error(
"Cannot call $f with $x because it is not a real-valued affine " *
"expression of one variable with a coefficient of `+1`.",
Expand Down

0 comments on commit 2fe0a5a

Please sign in to comment.