Commits

Barry Schwartz committed 092ac61

Recode similarly for acyclic piecewise.

Comments (0)

Files changed (1)

fontdesign/piecewise.pure

   point pwise@(Piecewise p::list cyclic::int) t
   = point pwise (floatmod t (#p)) if cyclic && (t < 0 || #p <= t);
   = point pwise 0 if ~cyclic && t < 0;
-  = point pwise (#p) if ~cyclic && #p < t;
-  = point (last p) 1.0 if t == #p;
+  = point (last p) 1.0 if ~cyclic && #p <= t;
   = point (p!(int i)) q
    when
      i = floor t;