firelzrd/bore-scheduler

32-bit target

fbswe opened this issue · 2 comments

fbswe commented

in core.c:
if (cnt) avg = (sum / cnt) << 8;

This code will not work in a 32-bit target environment. correct to
if (cnt) avg = do_div(sum, cnt) << 8;

Merged.
Thanks for your helpful contribution!

Fixed. Thank you, skbeh!