Skip to content

Commit

Permalink
Merge pull request #35 from JuliaGeometry/KristofferC-patch-1
Browse files Browse the repository at this point in the history
fix version check for `MemoryRef`
  • Loading branch information
j-fu authored Feb 27, 2024
2 parents e9934ed + 6329c57 commit b8ad0ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jltetgenio.jl
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ function unsafe_array_convert(P::Type{Ptr{T1}}, x::Vector{T2}) where {T1, T2}
Ptr{T1}(Base.unsafe_convert(Ptr{T2}, x))
end

@static if VERSION > v"1.10"
if isdefined(Base, :MemoryRef)
function unsafe_array_convert(P::Type{Ptr{T1}}, x::MemoryRef{T2}) where {T1, T2}
Ptr{T1}(Base.unsafe_convert(Ptr{T2}, x))
end
Expand Down

0 comments on commit b8ad0ad

Please sign in to comment.