From 34e27dc66139f0577299ee4f8b521bd604fb9ff2 Mon Sep 17 00:00:00 2001 From: cdricms <36056008+cdricms@users.noreply.github.com> Date: Sat, 13 Sep 2025 23:08:24 +0200 Subject: [PATCH] It should work now --- Sources/Units/Units.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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.