We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 582bab4 commit 6ba61b9Copy full SHA for 6ba61b9
1 file changed
src/buffers.jl
@@ -7,6 +7,10 @@ function Base.unsafe_convert(::Type{MPIPtr}, x::MPIBuffertype{T}) where T
7
ptr = Base.unsafe_convert(Ptr{T}, x)
8
reinterpret(MPIPtr, ptr)
9
end
10
+function Base.unsafe_convert(::Type{MPIPtr}, x::Base.OffsetCConvert{T}) where {T}
11
+ ptr = Base.unsafe_convert(Ptr{T}, x) # Base handles offset arithmetic
12
+ reinterpret(MPIPtr, ptr)
13
+end
14
15
16
Base.cconvert(::Type{MPIPtr}, x::String) = x
0 commit comments