File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ Base.size(x::JLDeviceArray) = x.dims
97
97
Base. sizeof (x:: JLDeviceArray ) = Base. elsize (x) * length (x)
98
98
99
99
Base. unsafe_convert (:: Type{Ptr{T}} , x:: JLDeviceArray{T} ) where {T} =
100
- Base . unsafe_convert (Ptr{T}, x. data) + x. offset* Base. elsize (x)
100
+ convert (Ptr{T}, pointer ( x. data) ) + x. offset* Base. elsize (x)
101
101
102
102
# conversion of untyped data to a typed Array
103
103
function typed_data (x:: JLDeviceArray{T} ) where {T}
@@ -269,7 +269,7 @@ Base.size(x::JLArray) = x.dims
269
269
Base. sizeof (x:: JLArray ) = Base. elsize (x) * length (x)
270
270
271
271
Base. unsafe_convert (:: Type{Ptr{T}} , x:: JLArray{T} ) where {T} =
272
- Base . unsafe_convert (Ptr{T}, x. data[]) + x. offset* Base. elsize (x)
272
+ convert (Ptr{T}, pointer ( x. data[]) ) + x. offset* Base. elsize (x)
273
273
274
274
275
275
# # interop with Julia arrays
You can’t perform that action at this time.
0 commit comments