Skip to content

Improve consistency of promote#56

Merged
timholy merged 2 commits intomasterfrom
teh/more_promote
Sep 25, 2016
Merged

Improve consistency of promote#56
timholy merged 2 commits intomasterfrom
teh/more_promote

Conversation

@timholy
Copy link
Copy Markdown
Member

@timholy timholy commented Sep 25, 2016

It turned out that calling promote_type with arguments in different orders led to different results:

julia> promote_type(Float32, UFixed8, Int)
Float64

julia> promote_type(UFixed8, Float32, Int)
Float32

That seems like a bad thing.

@timholy timholy merged commit bdbd2fa into master Sep 25, 2016
@timholy timholy deleted the teh/more_promote branch September 25, 2016 16:18
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.

1 participant