Skip to content

Commit b307243

Browse files
committed
base.oneto, fix travis space
1 parent ff89d57 commit b307243

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ os:
44
- linux
55
# - osx
66
julia:
7-
-1.0
7+
- 1.0
88
- nightly
99

1010
matrix:

src/staticdigraph.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ ne(g::StaticDiGraph{T, U}) where T where U = U(length(g.f_vec))
2727
function StaticDiGraph(nvtx::I, f_ss::AbstractVector{F}, f_ds::AbstractVector{D}, b_ss::AbstractVector{B}, b_ds::AbstractVector{S}) where {I<:Integer,S<:Integer,D<:Integer,B<:Integer,F<:Integer}
2828
length(f_ss) == length(f_ds) == length(b_ss) == length(b_ds) || error("source and destination vectors must be equal length")
2929
(nvtx == 0 || length(f_ss) == 0) && return StaticDiGraph(UInt8[], UInt8[1], UInt8[], UInt8[1])
30-
f_ind = [searchsortedfirst(f_ss, x) for x in 1:nvtx]
30+
f_ind = [searchsortedfirst(f_ss, x) for x in Base.OneTo(nvtx)]
3131
push!(f_ind, length(f_ss)+1)
32-
b_ind = [searchsortedfirst(b_ss, x) for x in 1:nvtx]
32+
b_ind = [searchsortedfirst(b_ss, x) for x in Base.OneTo(nvtx)]
3333
push!(b_ind, length(b_ss)+1)
3434
T = mintype(maximum(f_ds))
3535
U = mintype(f_ind[end])

src/staticgraph.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ end
1515
function StaticGraph(nvtx::I, ss::AbstractVector{S}, ds::AbstractVector{D}) where {I<:Integer,S<:Integer,D<:Integer}
1616
length(ss) != length(ds) && error("source and destination vectors must be equal length")
1717
(nvtx == 0 || length(ss) == 0) && return StaticGraph()
18-
f_ind = [searchsortedfirst(ss, x) for x in 1:nvtx]
18+
f_ind = [searchsortedfirst(ss, x) for x in Base.OneTo(nvtx)]
1919
push!(f_ind, length(ss)+1)
2020
T = mintype(maximum(ds))
2121
U = mintype(f_ind[end])

0 commit comments

Comments
 (0)