Skip to content

Commit 6603ac3

Browse files
committed
Fix memcpy ABI to resolve crash on Julia nightly
1 parent 91587e8 commit 6603ac3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pyarray.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function copy(a::PyArray{T,N}) where {T,N}
147147
# `Array`) otherwise we do a regular `copyto!`, such that A[I...] == a[I...]
148148
A = Array{T}(undef, a.dims)
149149
if a.f_contig
150-
ccall(:memcpy, Cvoid, (Ptr{T}, Ptr{T}, Int), A, a, sizeof(T)*length(a))
150+
ccall(:memcpy, Cvoid, (Ptr{Cvoid}, Ptr{Cvoid}, Int), A, a, sizeof(T)*length(a))
151151
else
152152
copyto!(A, a)
153153
end

0 commit comments

Comments
 (0)