It should work now

This commit is contained in:
cdricms
2025-09-13 23:08:24 +02:00
parent 0356d68cf2
commit 34e27dc661

View File

@@ -380,7 +380,7 @@ public struct UnitValue<ValueType: ConvertibleToDouble>:
)
-> UnitValue<Double>
{
(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<ValueType: ConvertibleToDouble>:
)
-> UnitValue<Double>
{
(lhs.value * rhs.doubleValue)[lhs.unit]
.init(value: lhs.value * rhs.doubleValue, unit: lhs.unit)
}
public static func * <L: ConvertibleToDouble, R: ConvertibleToDouble>(
@@ -397,7 +397,7 @@ public struct UnitValue<ValueType: ConvertibleToDouble>:
)
-> UnitValue<Double>
{
(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.