Skip to content

Commit 47ee3b8

Browse files
committed
Rename isone to eliminate build failure on julia 0.7
1 parent ef33a4b commit 47ee3b8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/show.jl

+5-3
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@ function show(io::IO, v::AbstractVariable)
22
print(io, name(v))
33
end
44

5-
isone(x::T) where T = x == one(T)
5+
6+
_isone(x::T) where T = x == one(T)
7+
68
function show(io::IO, m::AbstractMonomial)
79
if isconstant(m)
810
print(io, "1")
911
else
1012
for (var, exp) in zip(variables(m), exponents(m))
1113
if !iszero(exp)
1214
print(io, var)
13-
if !isone(exp)
15+
if !_isone(exp)
1416
print(io, "^", exp)
1517
end
1618
end
@@ -22,7 +24,7 @@ function Base.show(io::IO, t::AbstractTerm)
2224
if isconstant(t)
2325
print(io, coefficient(t))
2426
else
25-
if !isone(coefficient(t))
27+
if !_isone(coefficient(t))
2628
print(io, coefficient(t))
2729
end
2830
if !iszero(t)

0 commit comments

Comments
 (0)