-
Notifications
You must be signed in to change notification settings - Fork 92
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
0.7compat #90
0.7compat #90
Conversation
@@ -761,7 +761,7 @@ function h5convert!(out::Pointers, fls::FixedLengthString, f::JLDFile, x, ::JLDW | |||
(unsafe_copyto!(convert(Ptr{UInt8}, out), pointer(x), fls.length); nothing) | |||
end | |||
h5convert!(out::Pointers, ::Type{Vlen{String}}, f::JLDFile, x, wsession::JLDWriteSession) = | |||
store_vlen!(out, UInt8, f, Vector{UInt8}(x), wsession) | |||
store_vlen!(out, UInt8, f, unsafe_wrap(Array{UInt8}, pointer(x), ncodeunits(x)), wsession) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is incorrect, as it can drop references to x
. If x
is a String, we want
unsafe_wrap(Vector{UInt8}, x)
Also needs:
|
Also
Hopefully that will fix the remaining issues. |
I put those changes in #91. |
so instead of Thanks for completing this! |
I gave it a shot but cannot find out why I get the following error:
https://travis-ci.org/gdkrmr/JLD2.jl/jobs/412170446#L501
This gets a warning in 0.7:
I removed all the deprecation warning I could locate. I am not sure about about the right usage of
unsafe_wrap
instead ofVector{UInt8}
, you may want to check those.I also don't know how to deal with this one:
https://travis-ci.org/gdkrmr/JLD2.jl/jobs/412170446#L495