Skip to content

Commit 71ba17f

Browse files
authored
fix
1 parent 54648ec commit 71ba17f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/reinterpretarray.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ has_offset_axes(a::ReinterpretArray) = has_offset_axes(a.parent)
373373

374374
elsize(::Type{<:ReinterpretArray{T}}) where {T} = sizeof(T)
375375
cconvert(::Type{Ptr{T}}, a::ReinterpretArray{T,N,S} where N) where {T,S} = cconvert(Ptr{S}, a.parent)
376-
unsafe_convert(::Type{Ptr{T}}, a::ReinterpretArray{T}) = unsafe_convert(Ptr{T}, a.parent)
376+
unsafe_convert(::Type{Ptr{T}}, a::ReinterpretArray{T,N,S} where N) where {T,S} = Ptr{T}(unsafe_convert(Ptr{S},a.parent))
377377

378378
@propagate_inbounds function getindex(a::NonReshapedReinterpretArray{T,0,S}) where {T,S}
379379
if isprimitivetype(T) && isprimitivetype(S)

0 commit comments

Comments
 (0)