Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in unsafe_convert on nightly #338

Closed
jishnub opened this issue Dec 2, 2023 · 0 comments · Fixed by #344
Closed

Error in unsafe_convert on nightly #338

jishnub opened this issue Dec 2, 2023 · 0 comments · Fixed by #344

Comments

@jishnub
Copy link
Member

jishnub commented Dec 2, 2023

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 JuliaLang/julia#51962. I wonder if @chriselrod might have time to submit a fix? I'm unsure what the recommended method is in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant