From 907173172800a7c1a9cc87f30aef78509cd16b57 Mon Sep 17 00:00:00 2001 From: Simone Carlo Surace Date: Mon, 3 Nov 2025 00:15:54 +0100 Subject: [PATCH] Remove `@inbounds` in `_fvrange` and `_bvrange` --- src/StaticGraphs.jl | 4 ++-- src/staticdigraph.jl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/StaticGraphs.jl b/src/StaticGraphs.jl index 9c7261d..3aebce9 100644 --- a/src/StaticGraphs.jl +++ b/src/StaticGraphs.jl @@ -66,8 +66,8 @@ function show(io::IO, ::MIME"text/plain", g::AbstractStaticGraph) end @inline function _fvrange(g::AbstractStaticGraph, s::Integer) - @inbounds r_start = g.f_ind[s] - @inbounds r_end = g.f_ind[s + 1] - 1 + r_start = g.f_ind[s] + r_end = g.f_ind[s + 1] - 1 return r_start:r_end end diff --git a/src/staticdigraph.jl b/src/staticdigraph.jl index 7d8ed89..d981f21 100644 --- a/src/staticdigraph.jl +++ b/src/staticdigraph.jl @@ -11,8 +11,8 @@ struct StaticDiGraph{T<:Integer, U<:Integer} <: AbstractStaticGraph{T, U} end @inline function _bvrange(g::StaticDiGraph, s) - @inbounds r_start = g.b_ind[s] - @inbounds r_end = g.b_ind[s + 1] - 1 + r_start = g.b_ind[s] + r_end = g.b_ind[s + 1] - 1 return r_start:r_end end