Skip to content

Commit 6b3405b

Browse files
committed
pointer -> Base.unsafe_convert.
1 parent 692a87a commit 6b3405b

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
@@ -294,7 +294,7 @@ end
294294
A
295295
end
296296

297-
@inline Base.unsafe_convert(::Type{Ptr{T}}, A::OffsetArray{T}) where {T} = pointer(parent(A))
297+
@inline Base.unsafe_convert(::Type{Ptr{T}}, A::OffsetArray{T}) where {T} = Base.unsafe_convert(Ptr{T}, parent(A))
298298

299299
# For fast broadcasting: ref https://discourse.julialang.org/t/why-is-there-a-performance-hit-on-broadcasting-with-offsetarrays/32194
300300
Base.dataids(A::OffsetArray) = Base.dataids(parent(A))

0 commit comments

Comments
 (0)