Closed jishnub closed 8 months ago
julia> Base.unsafe_convert(Ptr{Float64}, OffsetArray(zeros(2))) ERROR: conversion to pointer not defined for Vector{Float64} Stacktrace: [1] error(s::String) @ Base ./error.jl:35 [2] unsafe_convert(::Type{Ptr{Float64}}, a::Vector{Float64}) @ Base ./pointer.jl:67 [3] unsafe_convert(::Type{Ptr{Float64}}, A::OffsetVector{Float64, Vector{Float64}}) @ OffsetArrays ~/Dropbox/JuliaPackages/OffsetArrays.jl/src/OffsetArrays.jl:464 [4] top-level scope @ REPL[3]:1
This is related to https://github.com/JuliaLang/julia/issues/51962. I wonder if @chriselrod might have time to submit a fix? I'm unsure what the recommended method is in this case.
This is related to https://github.com/JuliaLang/julia/issues/51962. I wonder if @chriselrod might have time to submit a fix? I'm unsure what the recommended method is in this case.