Skip to content

Commit bb38b54

Browse files
committed
only one route to the inner constructor
1 parent 3c639bc commit bb38b54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OffsetArrays.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ end
135135

136136
for (FT, ND) in ((:OffsetVector, :1), (:OffsetMatrix, :2))
137137
@eval function $FT(A::AbstractArray{<:Any,$ND}, offsets::NTuple{$ND,Integer})
138-
OffsetArray{eltype(A), $ND, typeof(A)}(A, offsets)
138+
OffsetArray(A, offsets)
139139
end
140140
@eval function $FT(A::OffsetArray{<:Any,$ND}, offsets::NTuple{$ND, Integer})
141141
$FT(parent(A), A.offsets .+ offsets)

0 commit comments

Comments
 (0)