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

Fix some v1.0 incompatibilities in show.jl. #401

Merged
merged 3 commits into from
Apr 23, 2019

Conversation

konstantin-azarov
Copy link
Contributor

Replaces lingering Voids with Nothings and fixes some string-related
function usage.

Replaces lingering Voids with Nothings and fixes some string-related
function usage.
src/show.jl Outdated
(isa(err, ErrorException) && contains(err.msg, "Could not find")) || rethrow(err)
return :( Base.show_datatype(io, typeof(x)); println(io," @0x", hex(convert(UInt,convert(Ptr{Void},x)),Sys.WORD_SIZE>>2)) )
(isa(err, ErrorException) && occursin("Could not find", err.msg)) || rethrow(err)
return :( Base.show_datatype(io, typeof(x)); println(io," @0x", string(convert(UInt,convert(Ptr{Nothing},x)), base=16, pad=Sys.WORD_SIZE>>2)) )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ptr{Cvoid} reads a little nicer IMO (that's why that constant is defined) but otherwise these changes look good to me!

@Gnimuc
Copy link
Member

Gnimuc commented Jan 5, 2019

FYI, #400 also fixed these upgrading oversights. But it looks like keno just doesn't have any bandwidth to review it.

@Gnimuc Gnimuc merged commit 6fefe9d into JuliaInterop:master Apr 23, 2019
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 this pull request may close these issues.

3 participants