Skip to content

Commit b35b58a

Browse files
committed
Fix missing arg
1 parent 7241c90 commit b35b58a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/indexing.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,9 @@ end
266266
setunstoredindex!(A, v, I...)
267267
end
268268
end
269-
@interface ::AbstractSparseArrayInterface function Base.setindex!(A::AbstractArray, I::Int)
269+
@interface ::AbstractSparseArrayInterface function Base.setindex!(
270+
A::AbstractArray, v, I::Int
271+
)
270272
@_propagate_inbounds_meta
271273
@boundscheck checkbounds(A, I)
272274
return @inbounds if isstored(A, I)
@@ -276,7 +278,9 @@ end
276278
end
277279
end
278280
# disambiguate vectors
279-
@interface ::AbstractSparseArrayInterface function Base.setindex!(A::AbstractVector, I::Int)
281+
@interface ::AbstractSparseArrayInterface function Base.setindex!(
282+
A::AbstractVector, v, I::Int
283+
)
280284
@_propagate_inbounds_meta
281285
@boundscheck checkbounds(A, I)
282286
return @inbounds if isstored(A, I)

0 commit comments

Comments
 (0)