mirror of
https://github.com/Klipper3d/klipper.git
synced 2026-03-05 12:01:48 +01:00
In the rare case where the step generation code finds an interval of zero, it was possible for an integer division of a negative number to cause an incorrect result. Fix that by using the idiv_up() and idiv_down() helpers. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>