mirror of
https://github.com/Klipper3d/klipper.git
synced 2026-09-11 06:40:39 +02: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>