mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-20 09:05:51 +00:00
The sub-pixel bounds lx + ix and lx + lw - ix round separately, so at third resolution they can still cross by an ulp and f64::clamp panics; a NaN layer size panicked too. max/min equals clamp whenever the bounds are ordered and cannot panic. The test now covers half and third resolution at fractional offsets and a NaN layer size. The parity note says Amount, not the displacement, is bounded to 2^24 px.