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 #37282, printing juxtaposition of 0 confusion with hex,bin,oct literals #37308

Merged
merged 1 commit into from
Sep 1, 2020

Conversation

JeffBezanson
Copy link
Member

fix #37282

@JeffBezanson JeffBezanson added bugfix This change fixes an existing bug display and printing Aesthetics and correctness of printed representations of objects. labels Aug 31, 2020
@@ -1601,7 +1601,10 @@ function show_unquoted(io::IO, ex::Expr, indent::Int, prec::Int, quote_level::In
# scalar multiplication (i.e. "100x")
elseif (func === :* &&
length(func_args) == 2 && isa(func_args[1], Union{Int, Int64, Float32, Float64}) &&
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
length(func_args) == 2 && isa(func_args[1], Union{Int, Int64, Float32, Float64}) &&
length(func_args) == 2 && isa(func_args[1], Union{Int32, Int64, Float32, Float64}) &&

Copy link
Member

Choose a reason for hiding this comment

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

Nvm, I assume this might have been intentional

@@ -1601,7 +1601,10 @@ function show_unquoted(io::IO, ex::Expr, indent::Int, prec::Int, quote_level::In
# scalar multiplication (i.e. "100x")
elseif (func === :* &&
length(func_args) == 2 && isa(func_args[1], Union{Int, Int64, Float32, Float64}) &&
Copy link
Member

Choose a reason for hiding this comment

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

Nvm, I assume this might have been intentional

@JeffBezanson JeffBezanson merged commit f896006 into master Sep 1, 2020
@JeffBezanson JeffBezanson deleted the jb/fix37282 branch September 1, 2020 22:18
@KristofferC KristofferC mentioned this pull request Sep 7, 2020
29 tasks
KristofferC pushed a commit that referenced this pull request Sep 7, 2020
KristofferC pushed a commit that referenced this pull request Sep 7, 2020
KristofferC pushed a commit that referenced this pull request Sep 8, 2020
KristofferC pushed a commit that referenced this pull request Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes an existing bug display and printing Aesthetics and correctness of printed representations of objects.
Projects
None yet
5 participants