diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-01-25 14:15:57 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-01-25 14:20:44 -0500 |
commit | 5ca132eafaaaf2b5bffc2b696d1fa4e364ffaf0b (patch) | |
tree | f391fdc0767050e054d5da3c74d2d3b569a2817b /config/generic-bigtreetech-skr-v1.4.cfg | |
parent | 502e83725b1bbcdf684d9a99220769ca831c0164 (diff) | |
download | kutter-5ca132eafaaaf2b5bffc2b696d1fa4e364ffaf0b.tar.gz kutter-5ca132eafaaaf2b5bffc2b696d1fa4e364ffaf0b.tar.xz kutter-5ca132eafaaaf2b5bffc2b696d1fa4e364ffaf0b.zip |
stepcompress: Fix rounding error when interval=0
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>
Diffstat (limited to 'config/generic-bigtreetech-skr-v1.4.cfg')
0 files changed, 0 insertions, 0 deletions