Skip to content

Commit

Permalink
Fix type unstability
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiendesignolle committed Jan 3, 2025
1 parent a8d235c commit 69a1fb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nonlocal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 69a1fb3

Please sign in to comment.