Skip to content

Commit a546440

Browse files
authored
Merge pull request #34 from JuliaAlgebra/1.0
Fix errors on 1.0
2 parents f31c81d + bad6004 commit a546440

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ os:
55
# - osx
66
julia:
77
- 0.7
8+
- 1.0
89
- nightly
910

1011
matrix:

src/monovec.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ function Base.getindex(x::MV, I) where {MV<:MonomialVector}
4545
end
4646
Base.getindex(x::MonomialVector, i::Integer) = Monomial(x.vars, x.Z[i])
4747

48-
Base.endof(x::MonomialVector) = length(x)
48+
Base.firstindex(x::MonomialVector) = firstindex(x.Z)
49+
Base.lastindex(x::MonomialVector) = lastindex(x.Z)
4950
Base.size(x::MonomialVector) = (length(x),)
5051
Base.length(x::MonomialVector) = length(x.Z)
5152
Base.isempty(x::MonomialVector) = length(x) == 0

src/poly.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ Base.getindex(p::Polynomial, I::Int) = Term(p.a[I[1]], p.x[I[1]])
8888
struct TermIterator{C, T} <: AbstractVector{Term{C, T}}
8989
p::Polynomial{C, T}
9090
end
91-
Base.endof(p::TermIterator) = length(p.p)
91+
Base.firstindex(p::TermIterator) = firstindex(p.p.a)
92+
Base.lastindex(p::TermIterator) = lastindex(p.p.a)
9293
Base.length(p::TermIterator) = length(p.p.a)
9394
Base.size(p::TermIterator) = (length(p),)
9495
Base.isempty(p::TermIterator) = isempty(p.p.a)

0 commit comments

Comments
 (0)