diff --git a/Sources/Units/Units.swift b/Sources/Units/Units.swift index c748c40..e8074d7 100644 --- a/Sources/Units/Units.swift +++ b/Sources/Units/Units.swift @@ -380,7 +380,7 @@ public struct UnitValue: ) -> UnitValue { - (lhs.value * rhs.value)[lhs.unit] + .init(value: lhs.value * rhs.value, unit: lhs.unit) } /// The result will have the `unit` of the left hand side value. @@ -389,7 +389,7 @@ public struct UnitValue: ) -> UnitValue { - (lhs.value * rhs.doubleValue)[lhs.unit] + .init(value: lhs.value * rhs.doubleValue, unit: lhs.unit) } public static func * ( @@ -397,7 +397,7 @@ public struct UnitValue: ) -> UnitValue { - (lhs.doubleValue * rhs.value)[rhs.unit] + .init(value: lhs.doubleValue * rhs.value, unit: rhs.unit) } /// The result will have the `unit` of the left hand side value.