Skip to content

Commit 3a39966

Browse files
author
KDr2
committed
fix setindex! for TArray
1 parent c682a65 commit 3a39966

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tarray.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function Base.getindex(S::TArray{T, N}, I::Vararg{Int,N}) where {T, N}
5353
return d[I...]
5454
end
5555

56-
function Base.setindex!(S::TArray{T, N}, x::T, I::Vararg{Int,N}) where {T, N}
56+
function Base.setindex!(S::TArray{T, N}, x, I::Vararg{Int,N}) where {T, N}
5757
n, d = task_local_storage(S.ref)
5858
cn = n_copies()
5959
newd = d
@@ -65,7 +65,7 @@ function Base.setindex!(S::TArray{T, N}, x::T, I::Vararg{Int,N}) where {T, N}
6565
newd[I...] = x
6666
end
6767

68-
function Base.push!(S::TArray{T}, x::T) where T
68+
function Base.push!(S::TArray{T}, x) where T
6969
n, d = task_local_storage(S.ref)
7070
cn = n_copies()
7171
newd = d

0 commit comments

Comments
 (0)