Skip to content

Commit d0cacb0

Browse files
committed
Make findindex type stable on julia 1.11
1 parent 003cb1c commit d0cacb0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ExtendableSparse"
22
uuid = "95c220a8-a1cf-11e9-0c77-dbfce5f500b3"
33
authors = ["Juergen Fuhrmann <juergen.fuhrmann@wias-berlin.de>"]
4-
version = "1.4"
4+
version = "1.4.1"
55

66
[deps]
77
AMGCLWrap = "4f76b812-4ba5-496d-b042-d70715554288"

src/matrix/sparsematrixlnk.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ function SparseMatrixLNK(csc::SparseArrays.SparseMatrixCSC{Tv, Ti}) where {Tv, T
117117
lnk
118118
end
119119

120-
function findindex(lnk::SparseMatrixLNK, i, j)
120+
function findindex(lnk::SparseMatrixLNK{Tv,Ti}, i, j) where {Tv,Ti}
121121
if !((1 <= i <= lnk.m) & (1 <= j <= lnk.n))
122122
throw(BoundsError(lnk, (i, j)))
123123
end
124124

125-
k = j
126-
k0 = j
125+
k::Ti = j
126+
k0::Ti = j
127127
while k > 0
128128
if lnk.rowval[k] == i
129129
return k, 0

0 commit comments

Comments
 (0)