From 69a1fb3968f01adb4d6dde6a2ee6780317df94ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Designolle?= Date: Fri, 3 Jan 2025 15:05:17 +0100 Subject: [PATCH] Fix type unstability --- src/nonlocal.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nonlocal.jl b/src/nonlocal.jl index 889fddd..42a371d 100644 --- a/src/nonlocal.jl +++ b/src/nonlocal.jl @@ -85,8 +85,8 @@ function _local_bound_correlation_core(chunk, ins::NTuple{N,Int}, squareG::Array by[i-1][marg+1:ins[i]] .= 2 .* ind[sumsizes[i-1]:sumsizes[i]-1] .- 1 end for y ∈ ins_region - b = prod(by[i][y[i]] for i ∈ 1:N-1) - lin_by = linearindex(y.I) + b::T = prod(by[i][y[i]] for i ∈ 1:N-1) + lin_by::Int = linearindex(y.I) for x ∈ 1:ia tmp[x] += squareG[x, lin_by] * b end