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

needs update for string.data changes #5

Closed
stevengj opened this issue Jan 4, 2017 · 0 comments
Closed

needs update for string.data changes #5

stevengj opened this issue Jan 4, 2017 · 0 comments

Comments

@stevengj
Copy link

stevengj commented Jan 4, 2017

After JuliaLang/julia#19449, soon to be merged for Julia 0.6, you will no longer be able to access the raw bytes of a string via string.data; instead, do Vector{UInt8}(string). For example, this affects:

https://github.com/quinnj/WeakRefStrings.jl/blob/34d5207e0c3e0c4b133ccc8d226a9e509e530df1/src/WeakRefStrings.jl#L64

By the way, length(x) in that function looks wrong. I think you want sizeof(x), the number of bytes, not the length (the number of codepoints).

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

No branches or pull requests

2 participants