Skip to content

Commit

Permalink
Merge pull request #43 from saschatimme/julia7
Browse files Browse the repository at this point in the history
Eliminate build failure on julia 0.7
  • Loading branch information
blegat authored Aug 15, 2017
2 parents bdb5139 + fe710c8 commit 478f47e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ function show(io::IO, v::AbstractVariable)
print(io, name(v))
end

isone(x::T) where T = x == one(T)
if VERSION < v"0.7.0-DEV.1319"
isone(x::T) where T = x == one(T)
end

function show(io::IO, m::AbstractMonomial)
if isconstant(m)
print(io, "1")
Expand Down

0 comments on commit 478f47e

Please sign in to comment.