Skip to content

Commit

Permalink
avoid 4-arg promote_type
Browse files Browse the repository at this point in the history
Base can't infer it
  • Loading branch information
vtjnash authored Jun 6, 2017
1 parent 1164e20 commit 60367b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Promotion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ function Base.promote_rule{S1,S2,D,U1,U2}(::Type{Quantity{S1,D,U1}},

p = promote_unit(U1(), U2())
numtype = promote_type(S1,S2,
typeof(convfact(p,U1())), typeof(convfact(p,U2())))
promote_type(typeof(convfact(p,U1())), typeof(convfact(p,U2()))))
if !isunitless(p)
if U1 <: ContextUnits && U2 <: ContextUnits
up1 = upreferred(U1())
Expand Down

0 comments on commit 60367b1

Please sign in to comment.