From 72eeaf446e3d5e186d63cc0d2276f0723cde017a Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Fri, 22 Apr 2022 12:40:23 +0200 Subject: [PATCH] fix: cycleArg imprecise fraction operation --- packages/core/timespan.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/timespan.mjs b/packages/core/timespan.mjs index 97ab74f1..5c398da1 100644 --- a/packages/core/timespan.mjs +++ b/packages/core/timespan.mjs @@ -33,7 +33,7 @@ export class TimeSpan { // (Note that the output timespan probably does not start *at* Time 0 -- // that only happens when the input Arc starts at an integral Time.) const b = this.begin.cyclePos(); - const e = b + (this.end - this.begin); + const e = b.add(this.end.sub(this.begin)); return new TimeSpan(b, e); }