mood.c: Avoid overflow in update_quadratic_deviation().