From f10858a6045e1e4d717f9a51728313d29d957e26 Mon Sep 17 00:00:00 2001 From: cdricms <36056008+cdricms@users.noreply.github.com> Date: Sat, 13 Sep 2025 23:16:48 +0200 Subject: [PATCH] Does it work now , --- Sources/Units/Units.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Sources/Units/Units.swift b/Sources/Units/Units.swift index e8074d7..22d71ee 100644 --- a/Sources/Units/Units.swift +++ b/Sources/Units/Units.swift @@ -384,20 +384,20 @@ public struct UnitValue: } /// The result will have the `unit` of the left hand side value. - public static func * ( - lhs: UnitValue, rhs: R + public static func * ( + lhs: UnitValue, rhs: Double ) -> UnitValue { - .init(value: lhs.value * rhs.doubleValue, unit: lhs.unit) + .init(value: lhs.value * rhs, unit: lhs.unit) } - public static func * ( - lhs: L, rhs: UnitValue + public static func * ( + lhs: Double, rhs: UnitValue ) -> UnitValue { - .init(value: lhs.doubleValue * rhs.value, unit: rhs.unit) + .init(value: lhs * rhs.value, unit: rhs.unit) } /// The result will have the `unit` of the left hand side value.