overflows.h: fix case where division overflows