diff --git a/src/utils/wsample.jl b/src/utils/wsample.jl index 818e4e0..f57d505 100644 --- a/src/utils/wsample.jl +++ b/src/utils/wsample.jl @@ -13,5 +13,5 @@ function wsample_single(a, w) break end end - return a[j] + return @inbounds a[j] end