Skip to content

Commit fb2d581

Browse files
committed
Fix small bug at int32 support
1 parent 40d494b commit fb2d581

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/aggregate.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ function aggregation(::StandardAggregation, S::SparseMatrixCSC{T,R}) where {T,R}
9797
if minimum(x) == -1
9898
mask = x .!= -1
9999
I = collect(R, 1:n)[mask]
100-
J = x[mask] + 1
100+
J = x[mask] + R(1)
101101
V = ones(eltype(S), length(J))
102102
AggOp = sparse(J,I,V,N,M)
103103
else
104104
Tp = collect(R, 1:n+1)
105-
x .= x .+ 1
105+
x .= x .+ R(1)
106106
Tx = ones(eltype(S), length(x))
107107
AggOp = SparseMatrixCSC(N, M, Tp, x, Tx)
108108
end

0 commit comments

Comments
 (0)