Changed Quantity fn to be inline

This commit is contained in:
adrien
2026-04-21 17:49:53 +02:00
parent 7b038dd2a5
commit a16bbedbd8
2 changed files with 7 additions and 7 deletions
-1
View File
@@ -82,7 +82,6 @@ pub fn set(comptime self: *Scales, comptime key: Dimension, comptime val: UnitSc
}
pub fn min(comptime s1: Scales, comptime s2: Scales) Scales {
@setEvalBranchQuota(10_000);
comptime var out = Scales.initFill(.none);
inline for (std.enums.values(Dimension)) |dim|
out.set(dim, if (s1.get(dim).getFactorInt() > s2.get(dim).getFactorInt()) s2.get(dim) else s1.get(dim));