-
Notifications
You must be signed in to change notification settings - Fork 142
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
Fix variable length strings as attributes #1130
Conversation
8be56a1
to
b5126fa
Compare
b5126fa
to
724c0ed
Compare
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.
Where is the original test for the non-variable length side? I'm looking at this from my phone, so it is difficult to look around.
ptr = Base.unsafe_convert(Cstring, strbuf) | ||
write_attribute(attr, memtype, Ref(ptr)) | ||
else | ||
ptr = Base.unsafe_convert(Ptr{UInt8}, strbuf) |
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.
Do we test this side of the conditional? I suppose this is for a fixed length string?
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.
Good point, maybe we should remove this. Don't think we have user-facing API that uses fixed strings
Does anyone know what's going up with nightly here? |
|
can a new release be tagged with this fix? 🙏 |
bump :) |
I think it might be easier to back port this to the 0.17 branch. I will work on that today. |
I released HDF5.jl 0.17.2 |
Fixes #1129