Skip to content

Commit 79389f7

Browse files
committed
Remove @inbounds in _fvrange and _bvrange
1 parent c996206 commit 79389f7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/StaticGraphs.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ function show(io::IO, ::MIME"text/plain", g::AbstractStaticGraph)
6666
end
6767

6868
@inline function _fvrange(g::AbstractStaticGraph, s::Integer)
69-
@inbounds r_start = g.f_ind[s]
70-
@inbounds r_end = g.f_ind[s + 1] - 1
69+
r_start = g.f_ind[s]
70+
r_end = g.f_ind[s + 1] - 1
7171
return r_start:r_end
7272
end
7373

src/staticdigraph.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ struct StaticDiGraph{T<:Integer, U<:Integer} <: AbstractStaticGraph{T, U}
1111
end
1212

1313
@inline function _bvrange(g::StaticDiGraph, s)
14-
@inbounds r_start = g.b_ind[s]
15-
@inbounds r_end = g.b_ind[s + 1] - 1
14+
r_start = g.b_ind[s]
15+
r_end = g.b_ind[s + 1] - 1
1616
return r_start:r_end
1717
end
1818

0 commit comments

Comments
 (0)