Skip to content

Commit 5a9bdd5

Browse files
committed
Clean up disambiguity implementation
1 parent 97f3b7c commit 5a9bdd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/disambiguities.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Base.:/(l::Number, r::AbstractDimensions) = error("Please use an `UnionAbstractQ
1616
if VERSION < v"1.7"
1717
for I in (Base.MultiplicativeInverses.UnsignedMultiplicativeInverse, Base.MultiplicativeInverses.SignedMultiplicativeInverse)
1818
@eval function Base.div(x::T, y::$I{T}, r::RoundingMode=RoundToZero) where {T<:AbstractGenericQuantity}
19-
return new_quantity(typeof(x), div(ustrip(x), ustrip(y), r), dimension(x) / dimension(y))
19+
return new_quantity(typeof(x), div(ustrip(x), y, r), dimension(x))
2020
end
2121
end
2222
end

0 commit comments

Comments
 (0)